MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getAvailableChatModels

Function getAvailableChatModels

packages/validation/src/chat.ts:180–189  ·  view source on GitHub ↗
(providers: {
  openai: boolean;
  anthropic: boolean;
})

Source from the content-addressed store, hash-verified

178 * so the first entry is a stable default.
179 */
180export function getAvailableChatModels(providers: {
181 openai: boolean;
182 anthropic: boolean;
183}): ChatModelEntry[] {
184 return CHAT_MODELS.filter((m) => {
185 if (m.group === 'OpenAI') return providers.openai;
186 if (m.group === 'Anthropic') return providers.anthropic;
187 return false;
188 });
189}
190
191// ────────────────────────────────────────────────────────────────────
192// Client-side tool schemas — the three URL-param mutators the LLM can

Callers 1

chat.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected