fix(coding-agent): honor registered model base urls

closes #4063
This commit is contained in:
Mario Zechner
2026-05-01 22:18:49 +02:00
parent f5b6e4fab0
commit ddb8ed0c73
5 changed files with 11 additions and 2 deletions

View File

@@ -1355,6 +1355,8 @@ export interface ProviderModelConfig {
name: string;
/** API type override for this model. */
api?: Api;
/** API endpoint URL override for this model. */
baseUrl?: string;
/** Whether the model supports extended thinking. */
reasoning: boolean;
/** Supported input types. */

View File

@@ -876,7 +876,7 @@ export class ModelRegistry {
name: modelDef.name,
api: api as Api,
provider: providerName,
baseUrl: config.baseUrl!,
baseUrl: modelDef.baseUrl ?? config.baseUrl!,
reasoning: modelDef.reasoning,
input: modelDef.input as ("text" | "image")[],
cost: modelDef.cost,