fix: fix copilot completion after base_url change

This commit is contained in:
Ruben Fiszel
2024-07-23 12:21:12 +02:00
parent 05388053e8
commit ae4cbb0401
+1 -1
View File
@@ -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',