fix(ai): bound the provider test and explain why it failed (#3319)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
This commit is contained in:
Kaushik N
2026-08-16 12:45:00 +02:00
committed by GitHub
co-authored by Claude Opus 5 Amruth Pillai
parent 104e954b77
commit a4bc2693be
62 changed files with 1231 additions and 82 deletions
+21
View File
@@ -41,3 +41,24 @@ export const AI_PROVIDER_DEFAULT_BASE_URLS: Record<AIProvider, string> = {
ollama: "https://ollama.com/api",
"openai-compatible": "",
};
// Brand names, used when a message has to name the provider outside a translated UI string. Every
// such message opens with this value, so the generic fallback is capitalised to match.
export const AI_PROVIDER_DISPLAY_NAMES: Record<AIProvider, string> = {
openai: "OpenAI",
anthropic: "Anthropic",
gemini: "Google Gemini",
"vercel-ai-gateway": "Vercel AI Gateway",
openrouter: "OpenRouter",
mistral: "Mistral",
cohere: "Cohere",
xai: "xAI",
groq: "Groq",
deepseek: "DeepSeek",
togetherai: "Together AI",
fireworks: "Fireworks AI",
cerebras: "Cerebras",
perplexity: "Perplexity",
ollama: "Ollama",
"openai-compatible": "The provider",
};