mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-02-05 11:38:05 +00:00
♻️ 增加MCP服务器友好名称为空时的处理
This commit is contained in:
parent
318e5b91c1
commit
506024c8f5
3 changed files with 7 additions and 4 deletions
|
|
@ -21,8 +21,8 @@ class MCPServerConfig(BaseModel):
|
|||
url: str | None = Field(None, description="sse模式下MCP服务器地址")
|
||||
|
||||
# 额外字段
|
||||
friendly_name: str = Field("", description="MCP服务器友好名称")
|
||||
addtional_prompt: str = Field("", description="额外提示词")
|
||||
friendly_name: str | None = Field(None, description="MCP服务器友好名称")
|
||||
addtional_prompt: str | None = Field(None, description="额外提示词")
|
||||
|
||||
class ScopedConfig(BaseModel):
|
||||
"""LLM Chat Plugin配置"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue