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

[Bug] #2950

Closed
zhogu opened this issue Jun 20, 2024 · 7 comments
Closed

[Bug] #2950

zhogu opened this issue Jun 20, 2024 · 7 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@zhogu
Copy link

zhogu commented Jun 20, 2024

📦 部署环境

Docker

📌 软件版本

v1.0.13

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

donot support http endpoint for azure openai models :

Route: [azure] AgentRuntimeError: {
cause: undefined,
message: 'Cannot connect to http:https://[my azure openai proxy]/openai/deployments/gpt-4/chat/completions?api-version=2023-07-01-preview while allowInsecureConnection is false.',
name: 'Error'
}

The endpoint is a my personal reverse proxy, which will redirect the request to multiple azure openai endpoints. The proxy only support http request. But I cannot find a way to set allowInsecureConnection as true.

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@zhogu zhogu added the 🐛 Bug Something isn't working | 缺陷 label Jun 20, 2024
@lobehubbot
Copy link
Member

👀 @zhogu

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

@arvinxx
Copy link
Contributor

arvinxx commented Jun 20, 2024

I think it's not an issue for LobeChat. You need to think about why not use https

@arvinxx arvinxx closed this as completed Jun 20, 2024
@lobehubbot
Copy link
Member

@zhogu

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

@zhogu
Copy link
Author

zhogu commented Jun 20, 2024

I think it's not an issue for LobeChat. You need to think about why not use https

Alright. The http proxy works well when I used openai python lib to access it. I can understand the error msg is not produced by the code in this repo but some depended libs. Could you provide some information on it?

@zhogu
Copy link
Author

zhogu commented Jun 20, 2024

According to the error msg, it might be possible to set allowInsecureConnection as true. So I wonder how to make it.

@arvinxx
Copy link
Contributor

arvinxx commented Jun 20, 2024

I don't think is a good idea to add this param in the LobeChat main repo, maybe you can change it by yourself https://github.com/lobehub/lobe-chat/blob/main/src/libs/agent-runtime/azureOpenai/index.ts

@zhogu
Copy link
Author

zhogu commented Jun 20, 2024

I don't think is a good idea to add this param in the LobeChat main repo, maybe you can change it by yourself https://github.com/lobehub/lobe-chat/blob/main/src/libs/agent-runtime/azureOpenai/index.ts

Thanks, I agree with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

3 participants