From 66fd036bbe2b8c8de467532a25856a25cca66264 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 23 Jul 2024 12:21:12 +0200 Subject: [PATCH] fix: fix copilot completion after base_url change --- frontend/src/lib/components/copilot/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/copilot/lib.ts b/frontend/src/lib/components/copilot/lib.ts index 56c733dacc..c2a97b9ad6 100644 --- a/frontend/src/lib/components/copilot/lib.ts +++ b/frontend/src/lib/components/copilot/lib.ts @@ -28,7 +28,7 @@ class WorkspacedOpenai { private client: OpenAI | undefined init(workspace: string, token: string | undefined = undefined) { - const baseURL = `${location.origin}${OpenAPI.BASE}//w/${workspace}/openai/proxy` + const baseURL = `${location.origin}${OpenAPI.BASE}/w/${workspace}/openai/proxy` this.client = new OpenAI({ baseURL, apiKey: 'fakekey',