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.47k stars 7.8k forks source link

新增一种快捷在chatgpt-on-wechat里使用dify的方法 #1894

Closed fatwang2 closed 1 month ago

fatwang2 commented 4 months ago

⚠️ 搜索是否存在类似issue

总结

我看之前有人提dify相关的PR没有通过,我换了种方式实现在cow里无缝接入dify,接入后可以使用dify的agent、workflow、knowledge base等功能,同时也可以通过dify快速接入各种新的大模型,点击链接即可部署 dify2openai

举例

No response

动机

No response

Fone520 commented 3 months ago

牛逼兄dei!!!

fatwang2 commented 3 months ago

我看一直没人回,以为大家不需要了,其实我还有一个 coze 的,类似

Fone520 commented 3 months ago

我看一直没人回,以为大家不需要了,其实我还有一个 coze 的,类似

刚好需要,哈哈哈谢谢啦大佬

Fone520 commented 3 months ago

coze免费可太爽了

我看一直没人回,以为大家不需要了,其实我还有一个 coze 的,类似

fatwang2 commented 3 months ago

coze 的 API 不是免费的,跟 OpenAI 一个价

perryrighthere commented 3 months ago

大佬,dify2openai啥时候能支持多模态,非常感谢!!!

MILKMILKKING commented 2 months ago

我一直没人回,以为大家都不需要了,其实我还有一个小秘密,类似

我想要听这个小秘密!给点提示

fatwang2 commented 2 months ago

是不是翻译的问题,我说的是coze。。。

On Tue, Jun 4, 2024 at 12:08 AM MILKMILKKING @.***> wrote:

我一直没人回,以为大家都不需要了,其实我还有一个小秘密,类似

我想要听这个小秘密!给点提示

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2145602619, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSXGC73ZJFSKH3L2CV3ZFSIJLAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVGYYDENRRHE . You are receiving this because you authored the thread.Message ID: @.***>

MILKMILKKING commented 2 months ago

哈哈哈 是翻译问题,我看成了你还有一个小秘密。

anycallzh commented 2 months ago

我看一直没人回,以为大家不需要了,其实我还有一个 coze 的,类似

期待大佬的coze调用秘密

fatwang2 commented 2 months ago

coze 的就是这个,也可以接入 cow

https://github.com/fatwang2/coze2openai

anycallzh @.***>于2024年6月4日 周二11:52写道:

我看一直没人回,以为大家不需要了,其实我还有一个 coze 的,类似

期待大佬的coze调用秘密

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2146534558, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSTMUPAB3YCVU224243ZFU2WNAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWGUZTINJVHA . You are receiving this because you authored the thread.Message ID: @.***>

MILKMILKKING commented 2 months ago

coze 的 API 不是免费的,跟 OpenAI 一个价

弱弱的问一下,COZE API不是免费的话,那调用这个优势在哪里呢?只是因为可以编排工作流吗?是不是可以有免费实现的方法?

fatwang2 commented 2 months ago

国内是免费的

MILKMILKKING @.***>于2024年6月4日 周二11:54写道:

coze 的 API 不是免费的,跟 OpenAI 一个价

弱弱的问一下,COZE API不是免费的话,那调用这个优势在哪里呢?只是因为可以编排工作流吗?是不是可以有免费实现的方法?

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2146536252, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSXDSWGLEYTGBOT7FTLZFU27PAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWGUZTMMRVGI . You are receiving this because you authored the thread.Message ID: @.***>

brokenman1 commented 2 months ago

dify转为api后,速度会有影响吗,功能是不是有缺失

fatwang2 commented 2 months ago

你可以看下我的项目说明

brokenman1 @.***>于2024年6月22日 周六14:11写道:

dify转为api后,速度会有影响吗,功能是不是有缺失

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2183830407, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSTJJJDYAZXSL4HNLY3ZIUIS7AVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHAZTANBQG4 . You are receiving this because you authored the thread.Message ID: @.***>

brokenman1 commented 2 months ago

你可以看下我的项目说明 brokenman1 @.>于2024年6月22日 周六14:11写道: dify转为api后,速度会有影响吗,功能是不是有缺失 — Reply to this email directly, view it on GitHub <#1894 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSTJJJDYAZXSL4HNLY3ZIUIS7AVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHAZTANBQG4 . You are receiving this because you authored the thread.Message ID: @.>

请问自已服务器部署的DIFY能转为openaiapi吗。。

fatwang2 commented 2 months ago

也可以的

brokenman1 @.***>于2024年6月22日 周六14:28写道:

你可以看下我的项目说明 brokenman1 @.

>于2024年6月22日 周六14:11写道: … <#m8385846842367621280> dify转为api后,速度会有影响吗,功能是不是有缺失 — Reply to this email directly, view it on GitHub <#1894 (comment) https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2183830407>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSTJJJDYAZXSL4HNLY3ZIUIS7AVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHAZTANBQG4 https://github.com/notifications/unsubscribe-auth/A77NZSTJJJDYAZXSL4HNLY3ZIUIS7AVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHAZTANBQG4 . You are receiving this because you authored the thread.Message ID: @.>

请问自已服务器部署的DIFY能转为openaiapi吗。。

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2183853390, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSX5DUPP4PAX4IS7S5DZIUKQ7AVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHA2TGMZZGA . You are receiving this because you were mentioned.Message ID: @.***>

balcklive commented 1 month ago

@fatwang2 老铁,这个dify2openai和chatgpt-on-wechat放在一起跑通过吗?我试了好像不行啊,我的配置文件如下:

"channel_type": "wx",
"model": "dify", "open_ai_api_key": "xxxxx", "proxy": "http://myipAddress:3000/v1/chat/completions",
"hot_reload": false,

报错内容如下: [WARNING][2024-07-07 23:03:23][chat_gpt_session.py:86] - num_tokens_from_messages() is not implemented for model dify. Returning num tokens assuming gpt-3.5-turbo. [WARNING][2024-07-07 23:03:23][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [WARNING][2024-07-07 23:03:28][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试 [WARNING][2024-07-07 23:03:28][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [WARNING][2024-07-07 23:03:33][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试 [WARNING][2024-07-07 23:03:34][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [INFO][2024-07-07 23:03:34][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] 我连接不到你的网络), receiver=@93c919ba28217dc1a9da47fd28e3f2ce9a9190068d98329a0b4a285025128b66

fatwang2 commented 1 month ago

可以,你变量填错了

balcklive @.***>于2024年7月7日 周日23:08写道:

@fatwang2 https://github.com/fatwang2 老铁,这个dify2openai和chatgpt-on-wechat放在一起跑通过吗?我试了好像不行啊,我的配置文件如下:

"channel_type": "wx", "model": "dify", "open_ai_api_key": "xxxxx", "proxy": "http://myipAddress:3000/v1/chat/completions", "hot_reload": false,

报错内容如下: [WARNING][2024-07-07 23:03:23][chat_gpt_session.py:86] - num_tokens_from_messages() is not implemented for model dify. Returning num tokens assuming gpt-3.5-turbo. [WARNING][2024-07-07 23:03:23][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [WARNING][2024-07-07 23:03:28][chat_gpt_bot.py:160] - [CHATGPT] 第1次重试 [WARNING][2024-07-07 23:03:28][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [WARNING][2024-07-07 23:03:33][chat_gpt_bot.py:160] - [CHATGPT] 第2次重试 [WARNING][2024-07-07 23:03:34][chat_gpt_bot.py:150] - [CHATGPT] APIConnectionError: Error communicating with OpenAI: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [INFO][2024-07-07 23:03:34][wechat_channel.py:217] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] 我连接不到你的网络), @.***

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2212480544, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSTCVWCGLIQHRJNXAJLZLFKYBAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGQ4DANJUGQ . You are receiving this because you were mentioned.Message ID: @.***>

balcklive commented 1 month ago

@fatwang2 哪个变量啊

fatwang2 commented 1 month ago

这是 apibase,不是 proxy

balcklive @.***>于2024年7月8日 周一22:42写道:

@fatwang2 https://github.com/fatwang2 哪个变量啊

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2214280506, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSRBQF2FUXBNHTPNKS3ZLKQPFAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGI4DANJQGY . You are receiving this because you were mentioned.Message ID: @.***>

balcklive commented 1 month ago

这是 apibase,不是 proxy balcklive @.>于2024年7月8日 周一22:42写道: @fatwang2 https://github.com/fatwang2 哪个变量啊 — Reply to this email directly, view it on GitHub <#1894 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSRBQF2FUXBNHTPNKS3ZLKQPFAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGI4DANJQGY . You are receiving this because you were mentioned.Message ID: @.>

正确的变量名是:open_ai_api_base;是吗?

fatwang2 commented 1 month ago

你研究下 cow 的变量就理解了

balcklive @.***>于2024年7月8日 周一23:04写道:

这是 apibase,不是 proxy balcklive @.

>于2024年7月8日 周一22:42写道: … <#m-5201735528531908494> @fatwang2 https://github.com/fatwang2 https://github.com/fatwang2 https://github.com/fatwang2 哪个变量啊 — Reply to this email directly, view it on GitHub <#1894 (comment) https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2214280506>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSRBQF2FUXBNHTPNKS3ZLKQPFAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGI4DANJQGY https://github.com/notifications/unsubscribe-auth/A77NZSRBQF2FUXBNHTPNKS3ZLKQPFAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGI4DANJQGY . You are receiving this because you were mentioned.Message ID: @.>

正确的变量名是:open_ai_api_base;是吗?

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2214374598, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSVYZCHRB4BNAZAZULTZLKTBBAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJUGM3TINJZHA . You are receiving this because you were mentioned.Message ID: @.***>

bberppub commented 1 month ago

牛的牛的,马上star

fattank commented 1 month ago

请教楼主,你的项目如何让微信不封号?

fatwang2 commented 1 month ago

项目封号问题要找 cow ,跟我这个无关

Tank @.***>于2024年7月14日 周日11:02写道:

请教楼主,你的项目如何让微信不封号?

— Reply to this email directly, view it on GitHub https://github.com/zhayujie/chatgpt-on-wechat/issues/1894#issuecomment-2227177718, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSS5E323KK66JCXZDRDZMHS4DAVCNFSM6AAAAABGGHI7F2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGE3TONZRHA . You are receiving this because you were mentioned.Message ID: @.***>