feat: add supports for zhipuai(chatglm)

This commit is contained in:
Junyan Qin
2025-01-06 20:27:10 +08:00
parent 8ed07b8d1a
commit 44b92909eb
8 changed files with 142 additions and 128 deletions
+25
View File
@@ -66,6 +66,14 @@
"type": "string"
},
"default": []
},
"zhipuai": {
"type": "array",
"title": "智谱AI API 密钥",
"items": {
"type": "string"
},
"default": []
}
}
},
@@ -210,6 +218,23 @@
"default": 120
}
}
},
"zhipuai-chat-completions": {
"type": "object",
"title": "智谱AI API 请求配置",
"description": "仅可编辑 URL 和 超时时间,额外请求参数不支持可视化编辑,请到编辑器编辑",
"properties": {
"base-url": {
"type": "string",
"title": "API URL"
},
"args": {
"type": "object"
},
"timeout": {
"type": "number"
}
}
}
}
},