mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-05-12 19:42:50 +00:00
✨ 添加额外请求体字段和推理内容请求选项到预设配置以支持deepseek-v4
This commit is contained in:
parent
c2a53175d5
commit
d7d6c14b3f
3 changed files with 43 additions and 8 deletions
|
|
@ -13,6 +13,11 @@ class PresetConfig(BaseModel):
|
|||
proxy: str = Field("", description="HTTP代理服务器")
|
||||
support_mcp: bool = Field(False, description="是否支持MCP")
|
||||
support_image: bool = Field(False, description="是否支持图片输入")
|
||||
extra_body: dict = Field({}, description="额外的请求体字段,用于兼容不同API的特殊参数")
|
||||
request_with_reasoning_content: bool = Field(
|
||||
False,
|
||||
description="请求中是否包含推理过程内容(部分模型要求进行了工具调用后,必须完整回传推理过程给API)"
|
||||
)
|
||||
|
||||
class MCPServerConfig(BaseModel):
|
||||
"""MCP服务器配置"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue