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 3554144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ export function createAxiosLanguageModel(url: string, config: object, defaultPar
const retryPauseMs = model.retryPauseMs ?? 1000;
while (true) {
const params = {
...defaultParams,
messages: [{ role: "user", content: prompt }],
temperature: 0,
n: 1
n: 1,
...defaultParams
};
const result = await client.post(url, params, { validateStatus: status => true });
if (result.status === 200) {
Expand Down

0 comments on commit 3554144

Please sign in to comment.