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