-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] 能否支持http请求的形式 #1822
Comments
🥰 Description of requirementsIs it possible to support sending http requests directly instead of only passing in api_key and proxy address? Because I am not verifying through api_key, I am verifying through the "Authorization" parameter in the header during the request. 🧐 SolutionMaybe support http requests? Just configure the http request parameters. 📝 Supplementary informationNo response |
👀 @Zzoay Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
我觉得不太可能支持,因为都是用的官方SDK或者兼容实现,人家不可能为你这个需求自己构造请求,你自己可以用反向代理实现,或者自己看看代码提pr |
I think it is unlikely to be supported because they all use the official SDK or compatible implementation. It is impossible for others to construct a request for your needs. You can use a reverse proxy to implement it yourself, or you can look at the code and submit a PR. |
我的意思不是说额外套一层,而只是加一个原本官方RESTful API的调用,是不是会比SDK兼容性更好呢?而且对于我们用户感知的输入参数都是完全一致的,不存在什么兼容性问题。 |
What I mean is not to add an extra layer, but just to add a call to the original official RESTful API. Will it be more compatible than the SDK? Moreover, the input parameters perceived by our users are completely consistent, and there is no compatibility issue. |
不计划这么做。一方面是自行构造请求的成本很高,另一方面也不安全。 |
Not planning on doing this. On the one hand, it is very costly to construct the request yourself, and on the other hand, it is not safe. |
✅ @Zzoay This issue is closed, If you have any questions, you can comment and reply. |
🥰 需求描述
能否支持直接发送http请求的形式,而不是只能传入api_key和代理地址。因为,我这边不是通过api_key进行验证的,我是通过在请求的时候header里的"Authorization"参数验证。
🧐 解决方案
或许可以支持http请求?配置http请求参数即可。或者实现用户自行配置模型服务?只要保证输入一致即可。这样就算模型服务更新了,只要用户自行配置就可以了,也不用你们追踪这么多个模型的更新。
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: