MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / getModelInfo

Function getModelInfo

apps/webuiapps/src/lib/llmModels.ts:169–171  ·  view source on GitHub ↗
(provider: LLMProvider, modelId: string)

Source from the content-addressed store, hash-verified

167}
168
169export function getModelInfo(provider: LLMProvider, modelId: string): ModelInfo | undefined {
170 return LLM_PROVIDER_CONFIGS[provider]?.models.find((m) => m.id === modelId);
171}
172
173export function getModelsByCategory(provider: LLMProvider, category: ModelCategory): ModelInfo[] {
174 return LLM_PROVIDER_CONFIGS[provider]?.models.filter((m) => m.category === category) ?? [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected