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

大佬,我想作画插件对接one-api #27

Closed
cui8 opened this issue Sep 21, 2023 · 4 comments
Closed

大佬,我想作画插件对接one-api #27

cui8 opened this issue Sep 21, 2023 · 4 comments

Comments

@cui8
Copy link

cui8 commented Sep 21, 2023

如果我使用此命令创建容器

docker run -d -p 8241:3000 \
	--name chatgpt1 \
	--restart always \
	-e PROXY_URL="http://192.168.1.4:7890" \
	-e BASE_URL="http://192.168.1.4:9150" \
	-e BING_SEARCH_API_KEY="90b3adf5" \
	-e R2_ACCOUNT_ID="1a245e" \
	-e R2_ACCESS_KEY_ID="506df65" \
	-e R2_SECRET_ACCESS_KEY="c773c9815c3486b5" \
	-e R2_BUCKET="gpt" \
	gosuto/chatgpt-next-web-langchain

修改 BASE_URL 为 one-api 地址。那么,one-api 日志会提示 当前分组 svip 下对于模型 dall-e 无可用渠道,在 one-api 如何怎么添加支持画图插件。
image
如果取消掉修改 BASE_URL 为 one-api 地址。那么,会正常作画。

docker run -d -p 8241:3000 \
	--name chatgpt1 \
	--restart always \
	-e PROXY_URL="http://192.168.1.4:7890" \
	-e BING_SEARCH_API_KEY="90b3adf5" \
	-e R2_ACCOUNT_ID="1a245e" \
	-e R2_ACCESS_KEY_ID="506df65" \
	-e R2_SECRET_ACCESS_KEY="c773c9815c3486b5" \
	-e R2_BUCKET="gpt" \
	gosuto/chatgpt-next-web-langchain

最后想问下,作画插件需要开代理吗?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Boss, I want to connect the painting plug-in to one-api

@Hk-Gosuto
Copy link
Owner

需要在你创建的渠道中添加 dall-e 模型,dall-e 插件调用的也是 openai 的接口,如果你 one-api 已经可以正常访问 openai 接口就不需要再配置代理了,插件现在也不支持代理的配置。
image

@cui8
Copy link
Author

cui8 commented Sep 21, 2023

需要在你创建的渠道中添加 dall-e 模型,dall-e 插件调用的也是 openai 的接口,如果你 one-api 已经可以正常访问 openai 接口就不需要再配置代理了,插件现在也不支持代理的配置。 image

谢谢大佬,有大佬帮忙,让小白少折腾几个小时。我还以为代理问题,最后没办法才看one-api日志的

@cui8 cui8 closed this as completed Sep 21, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


You need to add the dall-e model to the channel you created. The dall-e plug-in also calls the openai interface. If your one-api can already access the openai interface normally, there is no need to configure the proxy. The plug-in is now Configuration of proxies is also not supported. image

Thank you, boss. Having help from a boss will save Xiaobai a few hours of trouble. I thought it was a proxy problem, so I finally looked at the one-api log because I had no choice.

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