mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 07:09:50 +00:00
✨ 更新marsho函数以处理tool_calls,优化函数调用参数,添加占位符参数以兼容部分模型(如GLM)
This commit is contained in:
@ -163,7 +163,13 @@ class Caller:
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
key: value.data() for key, value in self._parameters.items()
|
||||
**{
|
||||
key: value.data() for key, value in self._parameters.items()
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string",
|
||||
"description": "占位符,用于显示在对话框中", # 为保证兼容性而设置的无用参数
|
||||
},
|
||||
},
|
||||
},
|
||||
"required": [
|
||||
|
Reference in New Issue
Block a user