refactor(config): dedupe model api definitions

This commit is contained in:
Peter Steinberger
2026-02-26 20:00:11 +01:00
parent ac03803d12
commit 344f54b84d
3 changed files with 16 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ import {
resolveAgentModelFallbackValues,
resolveAgentModelPrimaryValue,
} from "../config/model-input.js";
import type { ModelApi } from "../config/types.models.js";
import {
applyAuthProfileConfig,
applyLitellmProviderConfig,
@@ -45,7 +46,7 @@ import {
function createLegacyProviderConfig(params: {
providerId: string;
api: "anthropic-messages" | "openai-completions" | "openai-responses";
api: ModelApi;
modelId?: string;
modelName?: string;
baseUrl?: string;