NewAPI接非标准结构接口模型API地址转换
创建渠道选择“高级自定义”

配置路由
{
"advanced_routes": [
{
"incoming_path": "/v1/chat/completions",
"upstream_path": "/v2/chat/completions",
"converter": "none",
"auth": {
"type": "header",
"name": "Authorization",
"value": "Bearer {api_key}"
}
},
{
"incoming_path": "/v1/responses",
"upstream_path": "/v2/responses",
"converter": "none",
"auth": {
"type": "header",
"name": "Authorization",
"value": "Bearer {api_key}"
}
},
{
"incoming_path": "/v1/messages",
"upstream_path": "/anthropic/v1/messages",
"converter": "none",
"auth": {
"type": "header",
"name": "x-api-key",
"value": "{api_key}"
}
}
]
}
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 TAO
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果

