From 9e2988e76707da5da86a0fe6c0d4afe3ba971e9a Mon Sep 17 00:00:00 2001 From: sinedied Date: Wed, 8 May 2024 12:01:10 +0100 Subject: [PATCH] refactor: remove unsecure connection flag --- packages/webapp/src/api.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/webapp/src/api.ts b/packages/webapp/src/api.ts index 33df036..0b9e41c 100644 --- a/packages/webapp/src/api.ts +++ b/packages/webapp/src/api.ts @@ -10,9 +10,7 @@ export type ChatRequestOptions = { export async function* getCompletion(options: ChatRequestOptions) { const apiUrl = options.apiUrl || apiBaseUrl; - const client = new AIChatProtocolClient(`${apiUrl}/api/chat`, { - allowInsecureConnection: true, - }); + const client = new AIChatProtocolClient(`${apiUrl}/api/chat`); const result = await client.getStreamedCompletion(options.messages); for await (const response of result) {