binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
64.51k stars 7.97k forks source link

[Bug]: 【无法使用newbing】Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue. #941

Open river7816 opened 1 year ago

river7816 commented 1 year ago

Installation Method | 安装方法与平台

Pip Install (I used latest requirements.txt)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

Newbing 请求失败,报错信息如下. 如果是与网络相关的问题,建议更换代理协议(推荐http)或代理节点 Traceback (most recent call last): File ".\request_llm\bridge_newbingfree.py", line 152, in run asyncio.run(self.async_run()) File "D:\miniforge3\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "D:\miniforge3\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File ".\request_llm\bridge_newbingfree.py", line 98, in async_run async for final, response in self.newbing_model.ask_stream( File ".\request_llm\edge_gpt_free.py", line 676, in ask_stream async for response in self.chat_hub.ask_stream( File ".\request_llm\edge_gpt_free.py", line 567, in ask_stream raise Exception( Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue. 我已经挂上了节点,本地电脑也能使用newbing,但无法调用此模型

Screen Shot | 有帮助的截图

image image

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

zdevc commented 1 year ago

Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue. 微加了新的验证机制 打开官方聊天窗口,随便说几句,完成人机验证,再回到gpt_academic的窗口对话

river7816 commented 1 year ago

Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue. 微加了新的验证机制 打开官方聊天窗口,随便说几句,完成人机验证,再回到gpt_academic的窗口对话

image
Traceback (most recent call last):
  File ".\request_llm\bridge_newbingfree.py", line 152, in run
    asyncio.run(self.async_run())
  File "D:\miniforge3\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "D:\miniforge3\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File ".\request_llm\bridge_newbingfree.py", line 98, in async_run
    async for final, response in self.newbing_model.ask_stream(
  File ".\request_llm\edge_gpt_free.py", line 676, in ask_stream
    async for response in self.chat_hub.ask_stream(
  File ".\request_llm\edge_gpt_free.py", line 567, in ask_stream
    raise Exception(
Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue.

我已经打开了官方聊天窗口,但是仍然存在User needs to solve CAPTCHA to continue.这个问题

zdevc commented 1 year ago

在bing搜索主页的聊天栏聊,然后更新下cookie

river7816 commented 1 year ago

在bing搜索主页的聊天栏聊,然后更新下cookie

image

我已经尝试

  1. 在bing搜索主页聊天聊
  2. 清除cookie 仍然报错
zdevc commented 1 year ago

更新cookie: 把此时可以正常回答问题bing AI网页的当前cookie复制出来,复制到config.py指定位置,重启gpt_academic

river7816 commented 1 year ago

更新cookie: 把此时可以正常回答问题bing AI网页的当前cookie复制出来,复制到config.py指定位置,重启gpt_academic

image
  1. 将cookies导出为JSON格式 image
  2. 粘贴到NEWBING_COOKIES下
  3. 重启gpt_academic,仍然无法使用
binary-husky commented 1 year ago

related issue https://github.com/binary-husky/gpt_academic/issues/931

shanjilove commented 1 year ago

如果想使用selenium 模仿请求 bing 生成cookie 呢?也需要验证码,有人遇到过吗

Administor123 commented 1 year ago

你好,请问你解决了吗