fix: custom api

This commit is contained in:
Jing Hua 2023-03-04 19:31:22 +08:00
parent eeccf01ec2
commit 2be846f9df

View file

@ -35,7 +35,7 @@ const useSubmit = () => {
if (apiFree) {
stream = await getChatCompletionStreamFree(messages);
} else if (apiKey) {
stream = await getChatCompletionStreamFree(messages);
stream = await getChatCompletionStreamCustom(apiKey, messages);
}
if (stream) {