eryajf / chatgpt-dingtalk

🎒 钉钉 & 🤖 GPT-3.5 让你的工作效率直接起飞 🚀 私聊群聊方式、单聊串聊模式、角色扮演、图片创作 🚀
https://wiki.eryajf.net
MIT License
2.09k stars 388 forks source link

请求openai失败了 #304

Closed LoveClears closed 1 month ago

LoveClears commented 2 months ago

image 想问一下,之前都是好好的,然后今天突然弹出这个错误,因为东西是别人部署的,我也不知道怎么解决!

目前已经在网站上创建了key 并且直接修改了yml配置, ecs-user@asinking-proxy:~/chatgpt-dingtalk$ ./chatgpt-dingtalk 2024/07/18 15:55:58 INFO [?? The Server Is Running On Stream Mode] 但是错误还是一样的!

LoveClears commented 2 months ago
"error": {
    "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
}

应该是APIKEY的问题

LoveClears commented 2 months ago

但是我改了之后 重新运行程序 错误为什么还是提示一样的?

hkthomas commented 1 month ago

配置发上来看看。