mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 08:02:18 +00:00
fix: fix copilot completion after base_url change
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user