yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

whyhad opened this issue · comments

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

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

是极空间的docker配置界面

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

这个报错只存在这个分支

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 配置?

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

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

阿里云里面有