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

Function isPresetModel

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

Source from the content-addressed store, hash-verified

175}
176
177export function isPresetModel(provider: LLMProvider, modelId: string): boolean {
178 return LLM_PROVIDER_CONFIGS[provider]?.models.some((m) => m.id === modelId) ?? false;
179}
180
181export function getProviderDisplayName(provider: LLMProvider): string {
182 return LLM_PROVIDER_CONFIGS[provider]?.displayName ?? provider;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected