mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-05-13 20:12:51 +00:00
✨ 添加模型调用子模型的能力
This commit is contained in:
parent
bd16c6de8c
commit
4ab787a519
4 changed files with 755 additions and 13 deletions
|
|
@ -16,6 +16,14 @@ class PresetConfig(BaseModel):
|
|||
support_mcp: bool = Field(False, description="是否支持MCP")
|
||||
support_image: bool = Field(False, description="是否支持图片输入")
|
||||
|
||||
# 子模型能力标记
|
||||
support_to_image: bool = Field(False, description="是否支持生成图片")
|
||||
support_to_voice: bool = Field(False, description="是否支持生成语音")
|
||||
support_to_video: bool = Field(False, description="是否支持生成视频")
|
||||
|
||||
# 可调用的子模型列表
|
||||
call_model_list: list[str] | None = Field(None, description="可调用的子模型名称列表")
|
||||
|
||||
class MCPServerConfig(BaseModel):
|
||||
"""MCP服务器配置"""
|
||||
command: str | None = Field(None, description="stdio模式下MCP命令")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue