Skip to content

Commit

Permalink
🐛 Fix(custom): fix forward domain bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #36
  • Loading branch information
Kuingsmile committed Jan 15, 2024
1 parent 6ea20ad commit 34052a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/official.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { availableModels } from '@/utils/constant'
import { Ref } from 'vue'

function setConfig (apiKey: string, basePath?: string): ClientOptions {
const config = { apiKey, basePath, dangerouslyAllowBrowser: true }
const config = { apiKey, baseURL: basePath, dangerouslyAllowBrowser: true }
return config
}

Expand Down

0 comments on commit 34052a4

Please sign in to comment.