Closed wangxiaodong1021 closed 7 months ago
👀 @wangxiaodong1021
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
我倾向添加一个OPENROUTER_CUSTOM_MODELS
, cc @danielglh
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I tend to add an OPENROUTER_CUSTOM_MODELS, cc @danielglh
@arvinxx 我其实觉得对于 openrouter 这种模型巨多的,用环境变量配置并不太合适。openrouter 最好要有一个 model selector。当然,加一个环境变量并不麻烦,是可以加。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@arvinxx I actually think that for openrouter, which has so many models, it is not appropriate to use environment variables to configure it. It is best for openrouter to have a model selector. Of course, adding an environment variable is not troublesome, it can be added.
我其实觉得对于 openrouter 这种模型巨多的,用环境变量配置并不太合适。openrouter 最好要有一个 model selector。当然,加一个环境变量并不麻烦,是可以加。
环境变量的目的是给预设,我觉得是合理的。 model selector 是提供全量选择能力,两者不冲突
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I actually think that for openrouter, which has many models, it is not appropriate to use environment variables to configure it. It is best for openrouter to have a model selector. Of course, adding an environment variable is not troublesome, it can be added.
The purpose of environment variables is to set defaults, which I think is reasonable. The model selector provides full selection capabilities, and there is no conflict between the two.
✅ @wangxiaodong1021
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
💻 系统环境
Other
📦 部署环境
Vercel / Zeabur / Sealos
🌐 浏览器
Chrome
🐛 问题描述
我同时配置了OPENAI_PROXY_URL与OPENROUTER_API_KEY。我在修改CUSTOM_MODELS参数中指定openrouter的付费模型,如“anthropic/claude-3-haiku:beta”,会被误识别为OPENAI的模型接口调用
🚦 期望结果
希望CUSTOM_MODELS解析规则中,增加对OPENROUTER_API的二级解析策略。比如: openrouter/anthropic/claude-3-haiku:beta
📷 复现步骤
No response
📝 补充信息
No response