Merge pull request #337 from devchat-ai/fix_base_url_error
fix base url error
This commit is contained in:
commit
6e6cb32b89
@ -146,6 +146,11 @@ export class ApiKeyManager {
|
||||
}
|
||||
if (apiBase) {
|
||||
modelProperties["api_base"] = apiBase;
|
||||
} else if (!apiKey) {
|
||||
const devchatApiBase = await this.getProviderApiBase("devchat");
|
||||
if (devchatApiBase) {
|
||||
modelProperties["api_base"] = devchatApiBase;
|
||||
}
|
||||
}
|
||||
|
||||
if (!modelProperties["api_base"] && modelProperties["api_key"]?.startsWith("DC.")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user