@@ -45,6 +45,7 @@ import {
4545 claudeCodeDefaultModelId ,
4646 geminiCliModels ,
4747 geminiCliDefaultModelId ,
48+ ovhCloudAiEndpointsDefaultModelId ,
4849} from "@roo-code/types"
4950
5051/**
@@ -62,6 +63,7 @@ export type RouterName =
6263 | "io-intelligence"
6364 | "deepinfra"
6465 | "vercel-ai-gateway"
66+ | "ovhcloud"
6567
6668/**
6769 * ModelInfo interface - mirrors the one from packages/types/src/model.ts
@@ -105,6 +107,7 @@ export const PROVIDER_TO_ROUTER_NAME: Record<ProviderName, RouterName | null> =
105107 deepinfra : "deepinfra" ,
106108 "io-intelligence" : "io-intelligence" ,
107109 "vercel-ai-gateway" : "vercel-ai-gateway" ,
110+ ovhcloud : "ovhcloud" ,
108111 // Providers without dynamic model support
109112 anthropic : null ,
110113 bedrock : null ,
@@ -150,6 +153,7 @@ export const PROVIDER_MODEL_FIELD: Record<ProviderName, string | null> = {
150153 deepinfra : "deepInfraModelId" ,
151154 "io-intelligence" : "ioIntelligenceModelId" ,
152155 "vercel-ai-gateway" : "vercelAiGatewayModelId" ,
156+ ovhcloud : "ovhCloudAiEndpointsModelId" ,
153157 // Providers without dynamic model support
154158 anthropic : null ,
155159 bedrock : null ,
@@ -242,6 +246,7 @@ export const DEFAULT_MODEL_IDS: Partial<Record<ProviderName, string>> = {
242246 zai : internationalZAiDefaultModelId ,
243247 roo : rooDefaultModelId ,
244248 "gemini-cli" : geminiCliDefaultModelId ,
249+ ovhcloud : ovhCloudAiEndpointsDefaultModelId ,
245250}
246251
247252/**
@@ -413,6 +418,8 @@ export function getModelIdKey(provider: ProviderName): string {
413418 return "ioIntelligenceModelId"
414419 case "vercel-ai-gateway" :
415420 return "vercelAiGatewayModelId"
421+ case "ovhcloud" :
422+ return "ovhCloudAiEndpointsModelId"
416423 default :
417424 return "apiModelId"
418425 }
0 commit comments