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

模仿临时key增加临时chatgpt格式api接入方法。在输入框输入如下json可以临时切换使用该api,页面刷新即失效。 #1761

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Amo-Zeng
Copy link

@Amo-Zeng Amo-Zeng commented May 6, 2024

和输入临时key一样,输入如下json{"api_key":"sk-heK1pbXG1JzHk84oBd03B2C1A1504587Ba8cEd40CbD2Bxxf","tmp_endpoint":"http://xxxx/v1/chat/completions","tmp_model":"gpt-3.5-turbo"}可以导入临时api。这样新的api不用重启程序可以使用。也可以用于测试one-api的渠道。

@Amo-Zeng
Copy link
Author

{"tmp_key":"sk-heK1pbXG1JzHk84oBd03B2C1A1504587Ba8cEd40CbD2Bxxf","tmp_endpoint":"[http://xxxx/v1/chat/completions","tmp_model":"gpt-3.5-turbo"}改了一json,防止临时key格式不一致报错

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

Successfully merging this pull request may close these issues.

1 participant