Spaces:
Build error
Build error
// These are provider names, not user-facing text | |
export const MAP_PROVIDER = { | |
openai: "OpenAI", | |
azure: "Azure", | |
azure_ai: "Azure AI Studio", | |
vertex_ai: "VertexAI", | |
palm: "PaLM", | |
gemini: "Gemini", | |
anthropic: "Anthropic", | |
sagemaker: "AWS SageMaker", | |
bedrock: "AWS Bedrock", | |
mistral: "Mistral AI", | |
anyscale: "Anyscale", | |
databricks: "Databricks", | |
ollama: "Ollama", | |
perlexity: "Perplexity AI", | |
friendliai: "FriendliAI", | |
groq: "Groq", | |
fireworks_ai: "Fireworks AI", | |
cloudflare: "Cloudflare Workers AI", | |
deepinfra: "DeepInfra", | |
ai21: "AI21", | |
replicate: "Replicate", | |
voyage: "Voyage AI", | |
openrouter: "OpenRouter", | |
}; | |
export const mapProvider = (provider: string) => | |
Object.keys(MAP_PROVIDER).includes(provider) | |
? MAP_PROVIDER[provider as keyof typeof MAP_PROVIDER] | |
: provider; | |