Skip to content

Commit

Permalink
allow to override default temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed Aug 4, 2023
1 parent 4458d65 commit ca3a56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ export function createAxiosLanguageModel(url: string, config: object, defaultPar
const retryPauseMs = model.retryPauseMs ?? 1000;
while (true) {
const params = {
temperature: 0,
...defaultParams,
messages: [{ role: "user", content: prompt }],
temperature: 0,
n: 1
};
const result = await client.post(url, params, { validateStatus: status => true });
Expand Down

0 comments on commit ca3a56b

Please sign in to comment.