[Request] 能否支持http请求的形式 #1822
Zzoay posted onGitHub
🥰 需求描述
能否支持直接发送http请求的形式,而不是只能传入api_key和代理地址。因为,我这边不是通过api_key进行验证的,我是通过在请求的时候header里的"Authorization"参数验证。
🧐 解决方案
或许可以支持http请求?配置http请求参数即可。或者实现用户自行配置模型服务?只要保证输入一致即可。这样就算模型服务更新了,只要用户自行配置就可以了,也不用你们追踪这么多个模型的更新。
📝 补充信息
No response
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
🥰 Description of requirements
Is 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.
🧐 Solution
Maybe support http requests? Just configure the http request parameters.
📝 Supplementary information
No response
👀 @Zzoay
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
我觉得不太可能支持,因为都是用的官方SDK或者兼容实现,人家不可能为你这个需求自己构造请求,你自己可以用反向代理实现,或者自己看看代码提pr
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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.
我觉得不太可能支持,因为都是用的官方SDK或者兼容实现,人家不可能为你这个需求自己构造请求,你自己可以用反向代理实现,或者自己看看代码提pr
我的意思不是说额外套一层,而只是加一个原本官方RESTful API的调用,是不是会比SDK兼容性更好呢?而且对于我们用户感知的输入参数都是完全一致的,不存在什么兼容性问题。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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.
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.
不计划这么做。一方面是自行构造请求的成本很高,另一方面也不安全。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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.
此问题已经关闭。如果您有任何问题,可以留言并回复。