Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: add deepseek client

wangxiaolong100661015ee187b
diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.py
index a14c278e48..9f0bd6771c 100644
--- a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.py
+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.py
@@ -18,12 +18,14 @@ from openjiuwen.core.foundation.llm.schema.generation_response import (
from openjiuwen.core.foundation.llm.model_clients.base_model_client import BaseModelClient
from openjiuwen.core.foundation.llm.model_clients.openai_model_client import OpenAIModelClient
from openjiuwen.core.foundation.llm.model_clients.siliconflow_model_client import SiliconFlowModelClient
+from openjiuwen.core.foundation.llm.model_clients.deepseek_model_client import DeepSeekModelClient
_CLIENT_TYPE_REGISTRY: Dict[str, Type[BaseModelClient]] = {
"OpenAI": OpenAIModelClient,
"OpenRouter": OpenAIModelClient,
"SiliconFlow": SiliconFlowModelClient,
"DashScope": DashScopeModelClient,
+ "DeepSeek": DeepSeekModelClient,
}
diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py
index c341bfa1c1..bc1ddea242 100644
--- a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py
+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py
@@ -18,6 +18,7 @@ class ProviderType(str, Enum):
SiliconFlow = "SiliconFlow"
DashScope = "DashScope"
InferenceAffinity = "InferenceAffinity"
+ DeepSeek = "DeepSeek"
class ModelClientConfig(BaseModel):
@@ -27,7 +28,7 @@ class ModelClientConfig(BaseModel):
client_provider: Union[ProviderType, str] = Field(
...,
description="Service provider identification, Enumeration value: OpenAI, OpenRouter, "
- "SiliconFlow, DashScope, InferenceAffinity or ICBC"
+ "SiliconFlow, DashScope, InferenceAffinity, DeepSeek or ICBC"
)
api_key: str = Field(..., description="API key")
api_base: str = Field(..., description="API base URL")
diff --git a/jiuwenclaw/web/src/components/ConfigPanel/index.tsx b/jiuwenclaw/web/src/components/ConfigPanel/index.tsx
index a809d29d4b..d0d907a359 100644
--- a/jiuwenclaw/web/src/components/ConfigPanel/index.tsx
+++ b/jiuwenclaw/web/src/components/ConfigPanel/index.tsx
@@ -600,6 +600,7 @@ function GroupSection({
<option value="DashScope">DashScope</option>
<option value="SiliconFlow">SiliconFlow</option>
<option value="InferenceAffinity">InferenceAffinity</option>
+ <option value="DeepSeek">DeepSeek</option>
</>
)}
</select>
@@ -678,7 +679,7 @@ function GroupSection({
);
}
-const MODEL_PROVIDER_OPTIONS = ["OpenAI", "DashScope", "SiliconFlow", "InferenceAffinity"] as const;
+const MODEL_PROVIDER_OPTIONS = ["OpenAI", "DashScope", "SiliconFlow", "InferenceAffinity", "DeepSeek"] as const;
/** 多默认模型管理(受控组件,编辑状态由父组件持有) */
function MultiModelSection({