新增模型重定向功能:在config.js中添加getRedirectedModelId函数以处理模型ID重定向,并在routes.js中更新相关请求处理逻辑以使用重定向后的模型ID。同时,在config.json中添加模型重定向配置示例。
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"port": 3000,
|
||||
"model_redirects": {
|
||||
"claude-3-5-haiku-20241022": "claude-sonnet-4-5-20250929"
|
||||
},
|
||||
"endpoint": [
|
||||
{
|
||||
"name": "openai",
|
||||
|
||||
Reference in New Issue
Block a user