Interface: ModelRegistry
Dynamic model catalogue used by request routing and model-list responses.
Methods
Section titled “Methods”list()
Section titled “list()”list():
Promise<object[]>
Returns
Section titled “Returns”Promise<object[]>
refresh()
Section titled “refresh()”refresh():
Promise<void>
Returns
Section titled “Returns”Promise<void>
resolve()
Section titled “resolve()”resolve(
model?,options?):Promise<{aliases:string[];capabilities: {aiGatewayCodex:boolean;anthropic:boolean;chat:boolean;customTools:boolean;embeddings:boolean;openResponses:boolean;parallelTools:boolean;reasoning:boolean;responses:boolean;streaming:boolean;structuredOutput:boolean;tools:boolean;webSearch:boolean; };displayName:string;endpoint?: {class?:"chat-thinking"|"chat-balanced"|"chat-fast"|"embedding";description?:string;dimension?:number;displayName?:string;family?:string;modelServiceName?:string;name:string;profile?: {cost?:number;quality?:number;speed?:number; };reasoningEfforts?: ("none"|"minimal"|"low"|"medium"|"high"|"xhigh"|"max")[];serviceNames?:Record<string,string>;state?:string;status?: {deprecated:boolean; };supportsTools?:boolean;task?:string; };family?:string;id:string;modelServiceName?:string;reasoningEfforts: ("none"|"minimal"|"low"|"medium"|"high"|"xhigh"|"max")[]; } |undefined>
Parameters
Section titled “Parameters”model?
Section titled “model?”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<{ aliases: string[]; capabilities: { aiGatewayCodex: boolean; anthropic: boolean; chat: boolean; customTools: boolean; embeddings: boolean; openResponses: boolean; parallelTools: boolean; reasoning: boolean; responses: boolean; streaming: boolean; structuredOutput: boolean; tools: boolean; webSearch: boolean; }; displayName: string; endpoint?: { class?: "chat-thinking" | "chat-balanced" | "chat-fast" | "embedding"; description?: string; dimension?: number; displayName?: string; family?: string; modelServiceName?: string; name: string; profile?: { cost?: number; quality?: number; speed?: number; }; reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]; serviceNames?: Record<string, string>; state?: string; status?: { deprecated: boolean; }; supportsTools?: boolean; task?: string; }; family?: string; id: string; modelServiceName?: string; reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]; } | undefined>
search()
Section titled “search()”search(
query):Promise<object[]>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<object[]>