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

配置了千问,但系统仍使用默认的gpt #507

Open
whyhad opened this issue May 14, 2024 · 6 comments
Open

配置了千问,但系统仍使用默认的gpt #507

whyhad opened this issue May 14, 2024 · 6 comments

Comments

@whyhad
Copy link

whyhad commented May 14, 2024

日志报错:
2024/5/14 20:47:25 Exception: Using GPT api needs openai API key, please google how to
但已经配置了使用千问:
1

@yihong0618
Copy link
Owner

yihong0618 commented May 14, 2024

请问是用的新的配置格式 yaml么?

@whyhad
Copy link
Author

whyhad commented May 14, 2024

是极空间的docker配置界面

@yihong0618
Copy link
Owner

完这里问题,你可以用命令行试试

@frostming
Copy link
Collaborator

frostming commented May 15, 2024

这个报错只存在这个分支

xiaogpt/xiaogpt/config.py

Lines 102 to 106 in f274ec2

if self.bot in ["chatgptapi"]:
if not self.openai_key:
raise Exception(
"Using GPT api needs openai API key, please google how to"
)

说明你使用的是 chatgptapi,与你描述不符,请确认你的配置正确

是极空间的docker配置界面

不是很了解,这个支持给 xiaogpt 配置?

@bugmaker2
Copy link

你这是在哪里查看的参数图片?我能够成功调用通义千问

@yihong0618
Copy link
Owner

你这是在哪里查看的参数图片?我能够成功调用通义千问

阿里云里面有

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

4 participants