Skip to content
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

Closed
Zzoay opened this issue Mar 30, 2024 · 9 comments
Closed

[Request] 能否支持http请求的形式 #1822

Zzoay opened this issue Mar 30, 2024 · 9 comments
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@Zzoay
Copy link

Zzoay commented Mar 30, 2024

🥰 需求描述

能否支持直接发送http请求的形式,而不是只能传入api_key和代理地址。因为,我这边不是通过api_key进行验证的,我是通过在请求的时候header里的"Authorization"参数验证。

🧐 解决方案

或许可以支持http请求?配置http请求参数即可。或者实现用户自行配置模型服务?只要保证输入一致即可。这样就算模型服务更新了,只要用户自行配置就可以了,也不用你们追踪这么多个模型的更新。

📝 补充信息

No response

@Zzoay Zzoay added the 🌠 Feature Request New feature or request | 特性与建议 label Mar 30, 2024
@lobehubbot
Copy link
Member

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

@lobehubbot
Copy link
Member

👀 @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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@Zzoay Zzoay changed the title [Request] [Request] 能否支持http请求 Mar 30, 2024
@Zzoay Zzoay changed the title [Request] 能否支持http请求 [Request] 能否支持http请求api Mar 30, 2024
@Zzoay Zzoay changed the title [Request] 能否支持http请求api [Request] 接口能否支持http请求的形式 Mar 30, 2024
@Zzoay Zzoay changed the title [Request] 接口能否支持http请求的形式 [Request] 能否支持http请求的形式 Mar 30, 2024
@LeoQuote
Copy link

我觉得不太可能支持,因为都是用的官方SDK或者兼容实现,人家不可能为你这个需求自己构造请求,你自己可以用反向代理实现,或者自己看看代码提pr

@lobehubbot
Copy link
Member

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.

@Zzoay
Copy link
Author

Zzoay commented Mar 30, 2024

我觉得不太可能支持,因为都是用的官方SDK或者兼容实现,人家不可能为你这个需求自己构造请求,你自己可以用反向代理实现,或者自己看看代码提pr

我的意思不是说额外套一层,而只是加一个原本官方RESTful API的调用,是不是会比SDK兼容性更好呢?而且对于我们用户感知的输入参数都是完全一致的,不存在什么兼容性问题。

@lobehubbot
Copy link
Member

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.

@arvinxx
Copy link
Contributor

arvinxx commented Apr 3, 2024

不计划这么做。一方面是自行构造请求的成本很高,另一方面也不安全。

@arvinxx arvinxx closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
@lobehubbot
Copy link
Member

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.

@lobehubbot
Copy link
Member

@Zzoay

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

4 participants