MCPcopy Create free account
hub / github.com/TanStack/ai / getProviderDisplayName

Function getProviderDisplayName

testing/panel/tests/helpers.ts:68–78  ·  view source on GitHub ↗

* Get the display name for a provider (as shown in the UI)

(provider: ProviderId)

Source from the content-addressed store, hash-verified

66 * Get the display name for a provider (as shown in the UI)
67 */
68function getProviderDisplayName(provider: ProviderId): string {
69 const names: Record<ProviderId, string> = {
70 openai: 'OpenAI',
71 anthropic: 'Anthropic',
72 gemini: 'Gemini',
73 ollama: 'Ollama',
74 grok: 'Grok',
75 openrouter: 'OpenRouter',
76 }
77 return names[provider]
78}
79
80/**
81 * Send a message in the chat UI

Callers 1

selectProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected