diff --git a/src/hooks/useSubmit.ts b/src/hooks/useSubmit.ts index 517668d..88b8a45 100644 --- a/src/hooks/useSubmit.ts +++ b/src/hooks/useSubmit.ts @@ -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) {