mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 17:33:59 +01:00
parent
9f92cf5c70
commit
e69e50a9a9
|
@ -17,6 +17,7 @@ export const getChatCompletion = async (
|
|||
body: JSON.stringify({
|
||||
messages,
|
||||
...config,
|
||||
max_tokens: null,
|
||||
}),
|
||||
});
|
||||
if (!response.ok) throw new Error(await response.text());
|
||||
|
@ -42,6 +43,7 @@ export const getChatCompletionStream = async (
|
|||
body: JSON.stringify({
|
||||
messages,
|
||||
...config,
|
||||
max_tokens: null,
|
||||
stream: true,
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue