vision

Results 104 comments of vision

见#2046 很多提供三方api服务的都兼容openai格式(模型除了chatgpt外,还有claude,Gemini等),现有代码会根据model参数来选择对应的bot,特增加bot_type参数,指定使用的bot类型,可以解决使用第三方api key时候不能使用除chatgpt以外模型的问题 https://github.com/zhayujie/chatgpt-on-wechat/issues/2067 https://github.com/zhayujie/chatgpt-on-wechat/issues/2063 https://github.com/zhayujie/chatgpt-on-wechat/issues/2055 部分配置如下: { "open_ai_api_key": "sk-2c23a6cf8d2a2b677275d38c", # 三方服务的key "bot_type": "chatGPT", # 兼容openai请求格式时候,保持不变, "model": "claude-opus", # 依三方服务商提供的模型名字为准 "open_ai_api_base": "https://api.dxxxxxxh.com/v1", # 三方服务api 地址 }

azure对话相关配置: { "model": "", "open_ai_api_key": "8d31dbcddddfa5c325cb362c24e2", "open_ai_api_base": "https://xxxxx-ai.openai.azure.com/", "use_azure_chatgpt": true, "azure_deployment_id": "orange-gpt-4", } 测试可以正常对话

在需要保存图片的地方调用chat_message的prepare方法,可以參考:https://github.com/zhayujie/chatgpt-on-wechat/blob/master/plugins/linkai/linkai.py#L53

得先保证sd返回了图片链接,可以在根目录配置文件,加个参数"debug": true,打印更多日志看看

项目最新代码应该没这个问题,可以试试

没有image_recognition这个参数,json文件配置有误

微信本身限制了素材的大小

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