feat: siliconflow provider

This commit is contained in:
Junyan Qin
2025-02-01 14:19:21 +08:00
parent 8644f2c166
commit 41a7814615
7 changed files with 87 additions and 2 deletions
+8
View File
@@ -22,6 +22,9 @@
],
"zhipuai": [
"xxxxxxx"
],
"siliconflow": [
"xxxxxxx"
]
},
"requester": {
@@ -71,6 +74,11 @@
"base-url": "http://127.0.0.1:1234/v1",
"args": {},
"timeout": 120
},
"siliconflow-chat-completions": {
"base-url": "https://api.siliconflow.cn/v1",
"args": {},
"timeout": 120
}
},
"model": "gpt-4o",
+28
View File
@@ -74,6 +74,14 @@
"type": "string"
},
"default": []
},
"siliconflow": {
"type": "array",
"title": "SiliconFlow API 密钥",
"items": {
"type": "string"
},
"default": []
}
}
},
@@ -260,6 +268,26 @@
"default": 120
}
}
},
"siliconflow-chat-completions": {
"type": "object",
"title": "SiliconFlow API 请求配置",
"description": "仅可编辑 URL 和 超时时间,额外请求参数不支持可视化编辑,请到编辑器编辑",
"properties": {
"base-url": {
"type": "string",
"title": "API URL"
},
"args": {
"type": "object",
"default": {}
},
"timeout": {
"type": "number",
"title": "API 请求超时时间",
"default": 120
}
}
}
}
},