feat: the temperature and maxTokens of the openai can be configured

This commit is contained in:
Gabe Yuan
2024-05-21 23:15:46 +08:00
parent 0198963584
commit 5d1d65c2d3
4 changed files with 55 additions and 4 deletions

View File

@@ -500,6 +500,8 @@ const defaultOpenaiApi = {
key: "",
model: "gpt-4",
prompt: `You will be provided with a sentence in ${INPUT_PLACE_FROM}, and your task is to translate it into ${INPUT_PLACE_TO}.`,
temperature: 0,
maxTokens: 256,
fetchLimit: 1,
fetchInterval: 500,
};