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