fastgpt char

This commit is contained in:
archer
2023-09-02 00:28:08 +08:00
parent b9b50a0f5a
commit 1fe2c49204
7 changed files with 10 additions and 10 deletions

View File

@@ -98,7 +98,7 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
});
// console.log(messages);
// FastGpt temperature range: 1~10
// FastGPT temperature range: 1~10
temperature = +(modelConstantsData.maxTemperature * (temperature / 10)).toFixed(2);
temperature = Math.max(temperature, 0.01);
const chatAPI = getAIChatApi(userOpenaiAccount);