[mirotalk] - change ChatGPT model

This commit is contained in:
Miroslav Pejic
2024-01-01 23:26:38 +01:00
parent 98219bbfdf
commit a1432a0cd5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -105,6 +105,6 @@ SLACK_SIGNING_SECRET=YourSlackSigningSecret
CHATGPT_ENABLED=false
CHATGPT_BASE_PATH=https://api.openai.com/v1/
CHATGTP_APIKEY=YourOpenAiApiKey
CHATGPT_MODEL=text-davinci-003
CHATGPT_MODEL=gpt-3.5-turbo-instruct
CHATGPT_MAX_TOKENS=1000
CHATGPT_TEMPERATURE=0
+1 -1
View File
@@ -667,7 +667,7 @@ io.sockets.on('connect', async (socket) => {
try {
// https://platform.openai.com/docs/api-reference/completions/create
const completion = await chatGPT.completions.create({
model: configChatGPT.model || 'text-davinci-003',
model: configChatGPT.model || 'gpt-3.5-turbo-instruct',
prompt: params.prompt,
max_tokens: configChatGPT.max_tokens || 1000,
temperature: configChatGPT.temperature || 0,