revert(mcp): 移除MCP SSE客户端及工具集成支持

This commit is contained in:
明天好像没什么
2025-10-25 16:16:23 +08:00
parent 91021275c7
commit 0381320859
13 changed files with 24 additions and 1384 deletions

View File

@@ -12,8 +12,8 @@ class APIProvider(ValidatedConfigBase):
name: str = Field(..., min_length=1, description="API提供商名称")
base_url: str = Field(..., description="API基础URL")
api_key: str | list[str] = Field(..., min_length=1, description="API密钥支持单个密钥或密钥列表轮询")
client_type: Literal["openai", "gemini", "aiohttp_gemini", "mcp_sse"] = Field(
default="openai", description="客户端类型如openai/google/mcp_sse默认为openai"
client_type: Literal["openai", "gemini", "aiohttp_gemini"] = Field(
default="openai", description="客户端类型如openai/google等默认为openai"
)
max_retry: int = Field(default=2, ge=0, description="最大重试次数单个模型API调用失败最多重试的次数")
timeout: int = Field(