yihong0618 / xiaogpt

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

请教,如果使用ChatGLM的Apikey怎么使用呢 #389

Closed OnlyTL closed 10 months ago

OnlyTL commented 10 months ago

通过config.json 启动,只配置了glm_key image

运行 xiaogpt --config xiao_config.json

image

是我配置不对吗

yihong0618 commented 10 months ago

配置我们写的不太好,之后好好设计下,参考以下 json 需要把 gpt 的去掉(因为你环境里可能有 gpt 的 key

{
    "hardware": "L05B",
    "account": "xxxx",
    "password": "xxxxxxxxxx",
    "use_glm": true,
    "glm_key": "xxxxxxx",
    "mi_did": "xxxxxx",
    "use_command": false,
    "mute_xiaoai": true,
    "verbose": false,
    "bot": "glm",
    "tts": "mi",
    "edge_tts_voice": "zh-CN-XiaoxiaoNeural",
    "prompt": "请用100字以内回答",
    "keyword": [
        "请"
    ],
    "change_prompt_keyword": [
        "更改提示词"
    ],
    "start_conversation": "开始持续对话",
    "end_conversation": "结束持续对话",
    "stream": false
}
yihong0618 commented 10 months ago

@OnlyTL 没问题的话我先关了,欢迎随时打开。

OnlyTL commented 10 months ago

没有问题了,感谢