新增模型重定向功能:在config.js中添加getRedirectedModelId函数以处理模型ID重定向,并在routes.js中更新相关请求处理逻辑以使用重定向后的模型ID。同时,在config.json中添加模型重定向配置示例。

This commit is contained in:
Hwwwww
2025-10-12 15:46:43 +08:00
parent 666e58d681
commit bf9fcfc928
3 changed files with 32 additions and 14 deletions

View File

@@ -1,5 +1,8 @@
{
"port": 3000,
"model_redirects": {
"claude-3-5-haiku-20241022": "claude-sonnet-4-5-20250929"
},
"endpoint": [
{
"name": "openai",