From d46ac6634e913f230790463ddbd996baab568915 Mon Sep 17 00:00:00 2001 From: tanggang Date: Mon, 17 Nov 2025 15:20:47 +0800 Subject: [PATCH] Integrate burncloud --- conf/llm_factories.json | 23 +++++++++++++++++++++++ rag/llm/__init__.py | 4 +++- rag/llm/chat_model.py | 1 + web/public/iconfont.js | 1 + web/src/constants/llm.ts | 2 ++ 5 files changed, 30 insertions(+), 1 deletion(-) diff --git a/conf/llm_factories.json b/conf/llm_factories.json index 82eb25285..10d78ac44 100644 --- a/conf/llm_factories.json +++ b/conf/llm_factories.json @@ -4839,6 +4839,29 @@ "is_tools": false } ] + }, + { + "name": "BurnCloud", + "logo": "", + "tags": "LLM", + "status": "1", + "rank": "980", + "llm": [ + { + "llm_name": "deepseek-chat", + "tags": "LLM,CHAT", + "max_tokens": 64000, + "model_type": "chat", + "is_tools": true + }, + { + "llm_name": "deepseek-reasoner", + "tags": "LLM,CHAT", + "max_tokens": 64000, + "model_type": "chat", + "is_tools": true + } + ] } ] } \ No newline at end of file diff --git a/rag/llm/__init__.py b/rag/llm/__init__.py index 4d3d5fe82..f384d6b02 100644 --- a/rag/llm/__init__.py +++ b/rag/llm/__init__.py @@ -48,7 +48,8 @@ class SupportedLiteLLMProvider(StrEnum): NovitaAI = "NovitaAI" Lingyi_AI = "01.AI" GiteeAI = "GiteeAI" - AI_302 = "302.AI" + AI_302 = "302.AI", + BurnCloud = "BurnCloud" FACTORY_DEFAULT_BASE_URL = { @@ -99,6 +100,7 @@ LITELLM_PROVIDER_PREFIX = { SupportedLiteLLMProvider.Lingyi_AI: "openai/", SupportedLiteLLMProvider.GiteeAI: "openai/", SupportedLiteLLMProvider.AI_302: "openai/", + SupportedLiteLLMProvider.BurnCloud: "burncloud/", } ChatModel = globals().get("ChatModel", {}) diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py index 17ddbc138..28efe8f3b 100644 --- a/rag/llm/chat_model.py +++ b/rag/llm/chat_model.py @@ -1402,6 +1402,7 @@ class LiteLLMBase(ABC): "01.AI", "GiteeAI", "302.AI", + "BurnCloud" ] def __init__(self, key, model_name, base_url=None, **kwargs): diff --git a/web/public/iconfont.js b/web/public/iconfont.js index b7b426074..21dd43b1b 100644 --- a/web/public/iconfont.js +++ b/web/public/iconfont.js @@ -37,6 +37,7 @@ + diff --git a/web/src/constants/llm.ts b/web/src/constants/llm.ts index 0f85140d5..0e58b08b7 100644 --- a/web/src/constants/llm.ts +++ b/web/src/constants/llm.ts @@ -59,6 +59,7 @@ export enum LLMFactory { CometAPI = 'CometAPI', DeerAPI = 'DeerAPI', Builtin = 'Builtin', + BurnCloud = 'BurnCloud', } // Please lowercase the file name @@ -123,4 +124,5 @@ export const IconMap = { [LLMFactory.CometAPI]: 'cometapi', [LLMFactory.DeerAPI]: 'deerapi', [LLMFactory.Builtin]: 'builtin', + [LLMFactory.BurnCloud]: 'burncloud', };