diff --git a/src/agents/models-config.providers.ts b/src/agents/models-config.providers.ts index 830434595..996f09dd0 100644 --- a/src/agents/models-config.providers.ts +++ b/src/agents/models-config.providers.ts @@ -12,12 +12,7 @@ import { SYNTHETIC_BASE_URL, SYNTHETIC_MODEL_CATALOG, } from "./synthetic-models.js"; -import { - buildVeniceModelDefinition, - discoverVeniceModels, - VENICE_BASE_URL, - VENICE_MODEL_CATALOG, -} from "./venice-models.js"; +import { discoverVeniceModels, VENICE_BASE_URL } from "./venice-models.js"; type ModelsConfig = NonNullable; export type ProviderConfig = NonNullable[string]; diff --git a/src/agents/venice-models.ts b/src/agents/venice-models.ts index 25716cc51..32bd2f93b 100644 --- a/src/agents/venice-models.ts +++ b/src/agents/venice-models.ts @@ -340,7 +340,9 @@ export async function discoverVeniceModels(): Promise { }); if (!response.ok) { - console.warn(`[venice-models] Failed to discover models: HTTP ${response.status}, using static catalog`); + console.warn( + `[venice-models] Failed to discover models: HTTP ${response.status}, using static catalog`, + ); return VENICE_MODEL_CATALOG.map(buildVeniceModelDefinition); } @@ -351,7 +353,9 @@ export async function discoverVeniceModels(): Promise { } // Merge discovered models with catalog metadata - const catalogById = new Map(VENICE_MODEL_CATALOG.map((m) => [m.id, m])); + const catalogById = new Map( + VENICE_MODEL_CATALOG.map((m) => [m.id, m]), + ); const models: ModelDefinitionConfig[] = []; for (const apiModel of data.data) { diff --git a/src/commands/onboard-auth.config-core.ts b/src/commands/onboard-auth.config-core.ts index 8e324113e..0d3a8523a 100644 --- a/src/commands/onboard-auth.config-core.ts +++ b/src/commands/onboard-auth.config-core.ts @@ -353,9 +353,7 @@ export function applyVeniceProviderConfig(cfg: ClawdbotConfig): ClawdbotConfig { const veniceModels = VENICE_MODEL_CATALOG.map(buildVeniceModelDefinition); const mergedModels = [ ...existingModels, - ...veniceModels.filter( - (model) => !existingModels.some((existing) => existing.id === model.id), - ), + ...veniceModels.filter((model) => !existingModels.some((existing) => existing.id === model.id)), ]; const { apiKey: existingApiKey, ...existingProviderRest } = (existingProvider ?? {}) as Record< string, diff --git a/src/commands/onboard-auth.ts b/src/commands/onboard-auth.ts index 3ddeca48c..b122d89cf 100644 --- a/src/commands/onboard-auth.ts +++ b/src/commands/onboard-auth.ts @@ -2,10 +2,7 @@ export { SYNTHETIC_DEFAULT_MODEL_ID, SYNTHETIC_DEFAULT_MODEL_REF, } from "../agents/synthetic-models.js"; -export { - VENICE_DEFAULT_MODEL_ID, - VENICE_DEFAULT_MODEL_REF, -} from "../agents/venice-models.js"; +export { VENICE_DEFAULT_MODEL_ID, VENICE_DEFAULT_MODEL_REF } from "../agents/venice-models.js"; export { applyAuthProfileConfig, applyKimiCodeConfig,