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

Gemini配置文件config.json是否有问题,我使用了api正确可访问的,但微信机器人对接 #1707

Closed HHasi closed 3 weeks ago

HHasi commented 7 months ago

前置确认

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

操作系统类型?

Linux

运行的python版本是?

python 3.9

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

image 微信图片_20240127024618 如图

问题描述 😯

{ "gemini_api_key": "AIzaSyCTp2-IKeT7xxxxxx", "hot_reload": false, "single_chat_prefix": ["bot", "@bot"], "single_chat_reply_prefix": "[bot] ", "group_chat_prefix": ["@bot"], "group_name_white_list": ["ALL_GROUP"], "group_chat_in_one_session": ["ALL_GROUP"], "image_create_prefix": ["画","看","找"], "speech_recognition": true, "group_speech_recognition": false, "voice_reply_voice": true, "conversation_max_tokens": 2500, "expires_in_seconds": 3600, "character_desc": "你是Gemini, 一个由Google AI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。", "temperature": 0.7, "top_p": 1, "subscribe_msg": "感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。", "use_linkai": false }

这个是我的config.json

终端日志 📒

<此处粘贴终端日志>
single228758 commented 7 months ago

model gemini

Jas0nxlee commented 1 month ago

同问 加了model一样报错

6vision commented 3 weeks ago

model参数没配置,走的还是chatGPT bot。此外,如果提示网络问题,是gemini服务需要海外环境,且对代理的ip要求较高