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',