[mirotalk] - change ChatGPT model
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user