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

建议有一个设置openai.api_base的地方 #173

Closed
gaboolic opened this issue May 22, 2023 · 7 comments
Closed

建议有一个设置openai.api_base的地方 #173

gaboolic opened this issue May 22, 2023 · 7 comments
Assignees

Comments

@gaboolic
Copy link

现在貌似只能设置代理,本地开代理还是不太稳

@gaboolic
Copy link
Author

这样服务器反代就能用了

@gaboolic
Copy link
Author

对应到本项目的修改点是OpenAIClient类
OPEN_AI_STREAM_CLIENT = OpenAiStreamClient.builder().apiHost(OpenAIConst.OPENAI_HOST).apiKey(
Lists.newArrayList(apikey)).build();

@baiyutang
Copy link

同意

@chenxian01 chenxian01 self-assigned this May 27, 2023
@chenxian01
Copy link
Collaborator

已支持,请下载最新版

@gaboolic
Copy link
Author

gaboolic commented Jun 5, 2023

已支持,请下载最新版

不满足需求。。。
怎么搞成了2个tab,openai的配置没有改变,多了一个自定义tab,自定义tab还只能填url……

反代是搞了一个自己的url,其他所有东西和openai一模一样
对应Openai的库,只需要改openai.api_base啊
api_base = os.environ.get("OPENAI_API_BASE", "https://api.openai.com/v1")

@gaboolic
Copy link
Author

gaboolic commented Jun 5, 2023

image

@gaboolic
Copy link
Author

gaboolic commented Jun 5, 2023

请参考下chrome浏览器插件openai translater,以及chatall等项目的设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants