mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-06 19:40:44 +00:00
♻️ fix lint problems
This commit is contained in:
parent
ed2f9051ef
commit
3c1ac4b68b
3 changed files with 10 additions and 12 deletions
|
@ -1,5 +1,3 @@
|
|||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
|
@ -17,10 +15,10 @@ class PresetConfig(BaseModel):
|
|||
|
||||
class MCPServerConfig(BaseModel):
|
||||
"""MCP服务器配置"""
|
||||
command: Optional[str] = Field(None, description="stdio模式下MCP命令")
|
||||
args: Optional[list[str]] = Field([], description="stdio模式下MCP命令参数")
|
||||
env: Optional[dict[str, str]] = Field({}, description="stdio模式下MCP命令环境变量")
|
||||
url: Optional[str] = Field(None, description="sse模式下MCP服务器地址")
|
||||
command: str | None = Field(None, description="stdio模式下MCP命令")
|
||||
args: list[str] | None = Field([], description="stdio模式下MCP命令参数")
|
||||
env: dict[str, str] | None = Field({}, description="stdio模式下MCP命令环境变量")
|
||||
url: str | None = Field(None, description="sse模式下MCP服务器地址")
|
||||
|
||||
# 额外字段
|
||||
friendly_name: str = Field("", description="MCP服务器友好名称")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue