fix base url error
This commit is contained in:
parent
7a98cbf71c
commit
203cd69cc3
@ -146,6 +146,11 @@ export class ApiKeyManager {
|
|||||||
}
|
}
|
||||||
if (apiBase) {
|
if (apiBase) {
|
||||||
modelProperties["api_base"] = 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.")) {
|
if (!modelProperties["api_base"] && modelProperties["api_key"]?.startsWith("DC.")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user