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] 希望支持one-api 部署后的代理 目前无法使用 #263

Closed
laike opened this issue Oct 1, 2023 · 7 comments · Fixed by #305
Closed

[Request] 希望支持one-api 部署后的代理 目前无法使用 #263

laike opened this issue Oct 1, 2023 · 7 comments · Fixed by #305
Assignees
Labels
🌠 Feature Request New feature or request | 特性与建议 released

Comments

@laike
Copy link
Contributor

laike commented Oct 1, 2023

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

https://github.com/songquanpeng/one-api 这个One-Api搭建的代理没法再Lobe-Chat使用,我自己拉了源码来看不知道什么原因造成的 我试了下不通过 /api/openai/chat进行请求是可以的 不知道是不是使用的npm库openai 这个库不兼容 麻烦大佬空了看下

🚦 期望结果 | Expected Behavior

希望支持One-Api 部署的代理

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

@laike laike added the 🐛 Bug Something isn't working | 缺陷 label Oct 1, 2023
@arvinxx
Copy link
Contributor

arvinxx commented Oct 1, 2023

image

部署的时候设置一下proxy url的环境变量?

https://github.com/lobehub/lobe-chat/blob/main/docs/Environment-Variable.zh-CN.md

@laike
Copy link
Contributor Author

laike commented Oct 1, 2023

image

部署的时候设置一下proxy url的环境变量?

https://github.com/lobehub/lobe-chat/blob/main/docs/Environment-Variable.zh-CN.md

回去试下看行不行

@leoleelxh
Copy link

leoleelxh commented Oct 1, 2023

配置可以,但是不能通过oneapi 选择模型。
配置:

OPENAI_API_KEY=oneapi令牌
OPENAI_PROXY_URL=oneapi地址/v1

配置好,默认可以调用chatgpt的api和语言模型,但其他模型如通义千问、文心一言、本地部署的llm不能调用。

建议参考chat-next-web的方法,直接可以自定义模型名称,这样可以跟oneapi完美配合。

lobe-chat就不用花功夫在模型适配上,而是专注于插件和生态的建设。

@canisminor1990 canisminor1990 added the 🌠 Feature Request New feature or request | 特性与建议 label Oct 5, 2023
@canisminor1990 canisminor1990 changed the title [Bug] 希望支持one-api 部署后的代理 目前无法使用 [Feat] 希望支持one-api 部署后的代理 目前无法使用 Oct 10, 2023
@canisminor1990 canisminor1990 removed the 🐛 Bug Something isn't working | 缺陷 label Oct 10, 2023
@canisminor1990
Copy link
Member

#284

@canisminor1990 canisminor1990 changed the title [Feat] 希望支持one-api 部署后的代理 目前无法使用 [Request] 希望支持one-api 部署后的代理 目前无法使用 Oct 10, 2023
@52eraja
Copy link

52eraja commented Oct 11, 2023

我现在用oneapi是正常可以使用 只是lobe没有更多可以选或自定义模型

@arvinxx
Copy link
Contributor

arvinxx commented Oct 11, 2023

本周补齐「添加自定义模型」的功能

@arvinxx arvinxx moved this from Todo - Chat 0.X to In Progress in Lobe Chat Routine Oct 11, 2023
@arvinxx arvinxx self-assigned this Oct 11, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Lobe Chat Routine Oct 11, 2023
@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 0.87.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

skylinemusiccds pushed a commit to skylinemusiccds/BrainWeaver-development that referenced this issue May 12, 2024
skylinemusiccds pushed a commit to skylinemusiccds/BrainWeaver-development that referenced this issue May 12, 2024
coulsontl pushed a commit to coulsontl/lobe-chat that referenced this issue Dec 6, 2024
coulsontl pushed a commit to coulsontl/lobe-chat that referenced this issue Dec 6, 2024
需要有微信支付权限的用户进行验证
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 | 特性与建议 released
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants