zhayujie / chatgpt-on-wechat

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

dall-e-3无法使用 #2172

Open beluga383 opened 1 month ago

beluga383 commented 1 month ago

前置确认

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

操作系统类型?

Windows

运行的python版本是?

python 3.10

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

选择dall-e-3然后让它生成图片

问题描述 😯

不返回图片,但是链接里有图片

终端日志 📒

<此处粘贴终端日志>
beluga383 commented 1 month ago

[INFO][2024-07-23 19:14:43][open_ai_image.py:22] - [OPEN_AI] image_query=一杯水 [INFO][2024-07-23 19:14:58][open_ai_image.py:31] - [OPEN_AI] image_url=https://filesystem.site/cdn/20240723/kY25G51BI64VM7m7AMP9ikZeCKL0eu.webp [INFO][2024-07-23 19:15:02][wechat_channel.py:230] - [WX] download image success, size=292648, img_url=https://filesystem.site/cdn/20240723/kY25G51BI64VM7m7AMP9ikZeCKL0eu.webp [INFO][2024-07-23 19:15:02][wechat_channel.py:233] - [WX] sendImage url=https://filesystem.site/cdn/20240723/kY25G51BI64VM7m7AMP9ikZeCKL0eu.webp, receiver=@dd1a029e3abd109757a3c5195efa68ed092a58e95d495ed74d2302ff9b868084

6vision commented 1 month ago

应该用的是第三方的key,不是openai官方的key吧?一直都是webp格式还是偶尔出现? openai官方的key使用dalle-3,现在貌似不会使用webp格式

beluga383 commented 1 month ago

对,是第三方的key

beluga383 commented 1 month ago

是一直都是webp格式

6vision commented 1 month ago

看文件链接,是他们做了中转导致的

beluga383 commented 1 month ago

那个买api的说dalle3返回的就是webp的

6vision commented 1 month ago

官方返回的不是webp格式的,不过这个pr做了兼容 #2181 可以拉取测试一下

g530040217 commented 1 day ago

我这个啥问题?明明是dall-e-3,但是为啥是MJ模块回复???

INFO][2024-08-30 04:45:22][midjourney.py:195] - [MJ] image generate, prompt=一条天青牛蟒 [ERROR][2024-08-30 04:45:23][midjourney.py:226] - [MJ] generate error, msg=Authentication failed, please check your API_KEY in https://chat.link-ai.tech/console/interface, status_code=401 [INFO][2024-08-31 02:41:27][midjourney.py:195] - [MJ] image generate, prompt=一条天青牛蟒 [ERROR][2024-08-31 02:41:27][midjourney.py:226] - [MJ] generate error, msg=Authentication failed, please check your API_KEY in https://chat.link-ai.tech/console/interface, status_code=401

"channel_type": "wx", "model": "gpt-4o", "open_ai_api_key": "sk-proj-XXXXXX", "text_to_image": "dall-e-3", "voice_to_text": "openai", "text_to_voice": "openai", "proxy": "", "single_chat_prefix": [