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