change output limit
This commit is contained in:
@@ -33,7 +33,7 @@ export const OpenAIStream = async (
|
||||
Authorization: `Bearer ${key ? key : process.env.OPENAI_API_KEY}`,
|
||||
...(process.env.OPENAI_ORGANIZATION && {
|
||||
'OpenAI-Organization': process.env.OPENAI_ORGANIZATION,
|
||||
})
|
||||
}),
|
||||
},
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
@@ -45,7 +45,7 @@ export const OpenAIStream = async (
|
||||
},
|
||||
...messages,
|
||||
],
|
||||
max_tokens: 1000,
|
||||
max_tokens: 2000,
|
||||
temperature: 1,
|
||||
stream: true,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user