mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +02:00
- Add support for DeepSeek, Qwen (Alibaba), Kimi (Moonshot), and GLM (Zhipu) - Implement auto-fill API Base URL when selecting Chinese LLM providers - Add smart validation and warnings for missing API endpoints - Fix session state management in task logging service - Add comprehensive Chinese setup documentation - Add database migration for new LLM provider enums Closes #383
129 lines
3.4 KiB
TypeScript
129 lines
3.4 KiB
TypeScript
export interface LLMProvider {
|
|
value: string;
|
|
label: string;
|
|
example: string;
|
|
description: string;
|
|
apiBase?: string; // Default API Base URL for the provider / 提供商的默认 API Base URL
|
|
}
|
|
|
|
export const LLM_PROVIDERS: LLMProvider[] = [
|
|
{
|
|
value: "OPENAI",
|
|
label: "OpenAI",
|
|
example: "gpt-4o, gpt-4, gpt-3.5-turbo",
|
|
description: "Industry-leading GPT models with broad capabilities",
|
|
},
|
|
{
|
|
value: "ANTHROPIC",
|
|
label: "Anthropic",
|
|
example: "claude-3-5-sonnet-20241022, claude-3-opus-20240229",
|
|
description: "Claude models with strong reasoning and long context windows",
|
|
},
|
|
{
|
|
value: "GROQ",
|
|
label: "Groq",
|
|
example: "llama3-70b-8192, mixtral-8x7b-32768",
|
|
description: "Lightning-fast inference with custom LPU hardware",
|
|
},
|
|
{
|
|
value: "COHERE",
|
|
label: "Cohere",
|
|
example: "command-r-plus, command-r",
|
|
description: "Enterprise NLP models optimized for business applications",
|
|
},
|
|
{
|
|
value: "HUGGINGFACE",
|
|
label: "HuggingFace",
|
|
example: "microsoft/DialoGPT-medium",
|
|
description: "Access thousands of open-source models",
|
|
},
|
|
{
|
|
value: "AZURE_OPENAI",
|
|
label: "Azure OpenAI",
|
|
example: "gpt-4, gpt-35-turbo",
|
|
description: "OpenAI models with Microsoft Azure enterprise features",
|
|
},
|
|
{
|
|
value: "GOOGLE",
|
|
label: "Google",
|
|
example: "gemini-pro, gemini-pro-vision",
|
|
description: "Gemini models with multimodal capabilities",
|
|
},
|
|
{
|
|
value: "AWS_BEDROCK",
|
|
label: "AWS Bedrock",
|
|
example: "anthropic.claude-v2",
|
|
description: "Fully managed foundation models on AWS infrastructure",
|
|
},
|
|
{
|
|
value: "OLLAMA",
|
|
label: "Ollama",
|
|
example: "llama2, codellama",
|
|
description: "Run open-source models locally on your machine",
|
|
},
|
|
{
|
|
value: "MISTRAL",
|
|
label: "Mistral",
|
|
example: "mistral-large-latest, mistral-medium",
|
|
description: "High-performance open-source models from Europe",
|
|
},
|
|
{
|
|
value: "TOGETHER_AI",
|
|
label: "Together AI",
|
|
example: "togethercomputer/llama-2-70b-chat",
|
|
description: "Scalable cloud platform for open-source models",
|
|
},
|
|
{
|
|
value: "REPLICATE",
|
|
label: "Replicate",
|
|
example: "meta/llama-2-70b-chat",
|
|
description: "Cloud API for running machine learning models",
|
|
},
|
|
{
|
|
value: "OPENROUTER",
|
|
label: "OpenRouter",
|
|
example: "anthropic/claude-opus-4.1, openai/gpt-5",
|
|
description: "Unified API gateway for multiple LLM providers",
|
|
},
|
|
{
|
|
value: "COMETAPI",
|
|
label: "CometAPI",
|
|
example: "gpt-5-mini, claude-sonnet-4-5",
|
|
description: "Access 500+ AI models through one unified API",
|
|
},
|
|
// Chinese LLM Providers / 国产 LLM 提供商
|
|
{
|
|
value: "DEEPSEEK",
|
|
label: "DeepSeek",
|
|
example: "deepseek-chat, deepseek-coder",
|
|
description: "Chinese high-performance AI models",
|
|
apiBase: "https://api.deepseek.com",
|
|
},
|
|
{
|
|
value: "ALIBABA_QWEN",
|
|
label: "Qwen",
|
|
example: "qwen-max, qwen-plus, qwen-turbo",
|
|
description: "Alibaba Cloud Qwen LLM",
|
|
apiBase: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
},
|
|
{
|
|
value: "MOONSHOT",
|
|
label: "Kimi",
|
|
example: "moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k",
|
|
description: "Moonshot AI Kimi models",
|
|
apiBase: "https://api.moonshot.cn/v1",
|
|
},
|
|
{
|
|
value: "ZHIPU",
|
|
label: "GLM",
|
|
example: "glm-4, glm-4-flash, glm-3-turbo",
|
|
description: "Zhipu AI GLM series models",
|
|
apiBase: "https://open.bigmodel.cn/api/paas/v4",
|
|
},
|
|
{
|
|
value: "CUSTOM",
|
|
label: "Custom Provider",
|
|
example: "your-custom-model",
|
|
description: "Connect to your own custom model endpoint",
|
|
},
|
|
];
|