From 2be846f9df8f100b8bee40cd676dfceca7e41d3e Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sat, 4 Mar 2023 19:31:22 +0800 Subject: [PATCH] fix: custom api --- src/hooks/useSubmit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {