mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-26 00:34:00 +01:00
fix: custom api
This commit is contained in:
parent
eeccf01ec2
commit
2be846f9df
|
@ -35,7 +35,7 @@ const useSubmit = () => {
|
||||||
if (apiFree) {
|
if (apiFree) {
|
||||||
stream = await getChatCompletionStreamFree(messages);
|
stream = await getChatCompletionStreamFree(messages);
|
||||||
} else if (apiKey) {
|
} else if (apiKey) {
|
||||||
stream = await getChatCompletionStreamFree(messages);
|
stream = await getChatCompletionStreamCustom(apiKey, messages);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream) {
|
if (stream) {
|
||||||
|
|
Loading…
Reference in a new issue