regenerate button (#138)
This commit is contained in:
1 parent
d7fdcd0dfe
commit
d27326125b
5 files changed
+47
-43
No files matched your search
@@ -18,13 +18,13 @@ export const OpenAIStream = async (model: OpenAIModel, systemPrompt: string, key
|
||||
...messages
|
||||
],
|
||||
max_tokens: 1000,
|
||||
temperature: 0.0,
|
||||
temperature: 1,
|
||||
stream: true
|
||||
})
|
||||
});
|
||||
|
||||
if (res.status !== 200) {
|
||||
const statusText = res.statusText;
|
||||
const statusText = res.statusText;
|
||||
throw new Error(`OpenAI API returned an error: ${statusText}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user