From 35541445cc552d3f0a5a5263cb3cd521298e83c6 Mon Sep 17 00:00:00 2001 From: Andreas Bichinger Date: Fri, 4 Aug 2023 17:15:16 +0200 Subject: [PATCH] allow to override default temperature --- src/model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model.ts b/src/model.ts index 556fd02f..6222e652 100644 --- a/src/model.ts +++ b/src/model.ts @@ -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) {