feat: add supports for LM Studio

This commit is contained in:
Junyan Qin
2025-02-01 12:01:07 +08:00
parent e4518ebcf1
commit d0eeb2b304
6 changed files with 72 additions and 3 deletions
+5
View File
@@ -66,6 +66,11 @@
"base-url": "https://open.bigmodel.cn/api/paas/v4",
"args": {},
"timeout": 120
},
"lmstudio-chat-completions": {
"base-url": "http://127.0.0.1:1234/v1",
"args": {},
"timeout": 120
}
},
"model": "gpt-4o",
+20
View File
@@ -240,6 +240,26 @@
"default": 120
}
}
},
"lmstudio-chat-completions": {
"type": "object",
"title": "LMStudio API 请求配置",
"description": "仅可编辑 URL 和 超时时间,额外请求参数不支持可视化编辑,请到编辑器编辑",
"properties": {
"base-url": {
"type": "string",
"title": "API URL"
},
"args": {
"type": "object",
"default": {}
},
"timeout": {
"type": "number",
"title": "API 请求超时时间",
"default": 120
}
}
}
}
},