yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
5.86k stars 817 forks source link

群晖nas的docker运行 #442

Closed gaidan1983 closed 5 months ago

gaidan1983 commented 5 months ago

已成功运行在群晖nas的docker里,并通过另一个clash的docker实现科学上网。 运行1-2天后会一直提示以信息。 WARING Execotion when get lastest ask from xiaogpt.py 210 xiaoai:Cannot connect to host\ userprofile.mina.mi.com:443 ssl:default [Temporary failure in name resolution]

此时docker 还在正常运行,但已经没有“正在问GPT”了

另外,大佬是否可考虑在config.json里加一个模型参数。比如我可以设置成一个运行 gpt-3.5-turbo-1106,另一个运行 gpt-4-0125-previw

yihong0618 commented 5 months ago

@gaidan1983 第一个我会研究下 第二个这几天我加一下。

frostming commented 5 months ago

第二个已经支持啊,gpt_options 是一个字典,可以指定所有 OpenAI api 支持的参数

yihong0618 commented 5 months ago

第二个已经支持啊,gpt_options 是一个字典,可以指定所有 OpenAI api 支持的参数

对,我傻了,这个你放上就行

gaidan1983 commented 5 months ago

第二个已经支持啊,gpt_options 是一个字典,可以指定所有 OpenAI api 支持的参数

可否给示例。或者在说明中写个示例,谢谢!

frostming commented 5 months ago

可否给示例。或者在说明中写个示例,谢谢!

{
  "gpt_options": {
    "model": "gpt-3.5-turbo-1106"
  }
}

所有 API 文档 中支持的参数都可以放里面。

yihong0618 commented 5 months ago

关了哈