zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
29.85k stars 7.88k forks source link

最新版本的docker 环境启动后报错 #1682

Closed smilezgy closed 1 month ago

smilezgy commented 8 months ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

Linux

运行的python版本是?

python 3.10

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

other

复现步骤 🕹

最新docker启动 提示代理问题,我退回到之前版本的latest 这个proxy代理是ok的

问题描述 😯

No response

终端日志 📒


chatgpt-on-wechat  | [INFO][2024-01-17 08:18:05][bridge.py:49] - create bot chatGPT for chat
chatgpt-on-wechat  | [INFO][2024-01-17 08:18:05][chat_gpt_bot.py:49] - [CHATGPT] query=介绍自己
chatgpt-on-wechat  | [WARNING][2024-01-17 08:18:09][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: Invalid URL 'None/chat/completions': No scheme supplied. Perhaps you meant https://None/chat/completions?
chatgpt-on-wechat  | [WARNING][2024-01-17 08:18:14][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试
chatgpt-on-wechat  | [WARNING][2024-01-17 08:18:14][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: Invalid URL 'None/chat/completions': No scheme supplied. Perhaps you meant https://None/chat/completions?
chatgpt-on-wechat  | [WARNING][2024-01-17 08:18:19][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试
chatgpt-on-wechat  | [WARNING][2024-01-17 08:18:19][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: Invalid URL 'None/chat/completions': No scheme supplied. Perhaps you meant https://None/chat/completions?
chatgpt-on-wechat  | [INFO][2024-01-17 08:18:19][wechat_channel.py:205] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
chatgpt-on-wechat  | 我连接不到你的网络), receiver=@3b05be5f15c2c2ef094b9fc6901291d5
chatgpt-on-wechat  | Traceback (most recent call last):
QYlichuyou commented 8 months ago

微信图片_20240117180351 Add this in 'config.json'

zhayujie commented 8 months ago

已修复,docker和源码都存在这个问题, 重新拉取代码或镜像即可

smilezgy commented 7 months ago

ok,已经验证