Giter Club home page Giter Club logo

Comments (11)

anjia1991 avatar anjia1991 commented on June 1, 2024

代理?

from gpt_academic.

zangqiourun avatar zangqiourun commented on June 1, 2024

代理?
挂了代理也不行

from gpt_academic.

anjia1991 avatar anjia1991 commented on June 1, 2024

代理?
挂了代理也不行

我刚用还没问题,所以你查一下你的代理配置,或者考虑一下海外云服务器。

from gpt_academic.

zangqiourun avatar zangqiourun commented on June 1, 2024

代理?
挂了代理也不行

我刚用还没问题,所以你查一下你的代理配置,或者考虑一下海外云服务器。
我挂了全局都不行 不知道那里的问题

from gpt_academic.

binary-husky avatar binary-husky commented on June 1, 2024

即使是海外的,有的也不行

from gpt_academic.

Small-Crocodile avatar Small-Crocodile commented on June 1, 2024

需要全局代理,ip美国的是可以的

from gpt_academic.

ParkerLyu01 avatar ParkerLyu01 commented on June 1, 2024

我用的美国的服务器,用gemini-pro 也会报错,240226,用的最新版本的代码
环境是拉取的最新版本的镜像:ghcr.io/binary-husky/gpt_academic_with_latex:master
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/gradio/routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1323, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1067, in call_function
prediction = await utils.async_iteration(iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 336, in async_iteration
return await iterator.anext()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 329, in anext
return await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 312, in run_sync_iterator_async
return next(iterator)
^^^^^^^^^^^^^^
File "/home/code/gpt_academic/toolbox.py", line 119, in decorated
yield from f(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt, *args)
File "/home/code/gpt_academic/request_llms/bridge_all.py", line 783, in predict
yield from method(inputs, llm_kwargs, *args, **kwargs)
File "/home/code/gpt_academic/request_llms/bridge_google_gemini.py", line 105, in predict
raise RuntimeError('对话错误')
RuntimeError: 对话错误

from gpt_academic.

Small-Crocodile avatar Small-Crocodile commented on June 1, 2024

from gpt_academic.

ParkerLyu01 avatar ParkerLyu01 commented on June 1, 2024

我用的美国的服务器,用gemini-pro 也会报错,240226,用的最新版本的代码 环境是拉取的最新版本的镜像:ghcr.io/binary-husky/gpt_academic_with_latex:master Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/gradio/routes.py", line 422, in run_predict output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1323, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1067, in call_function prediction = await utils.async_iteration(iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 336, in async_iteration return await iterator.anext() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 329, in anext return await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 312, in run_sync_iterator_async return next(iterator) ^^^^^^^^^^^^^^ File "/home/code/gpt_academic/toolbox.py", line 119, in decorated yield from f(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt, *args) File "/home/code/gpt_academic/request_llms/bridge_all.py", line 783, in predict yield from method(inputs, llm_kwargs, *args, **kwargs) File "/home/code/gpt_academic/request_llms/bridge_google_gemini.py", line 105, in predict raise RuntimeError('对话错误') RuntimeError: 对话错误

可能是服务不稳定,我在别的地方调用 gemini-pro也是报错

from gpt_academic.

lake-lee avatar lake-lee commented on June 1, 2024

我用的美国的服务器,用gemini-pro 也会报错,240226,用的最新版本的代码 环境是拉取的最新版本的镜像:ghcr.io/binary-husky/gpt_academic_with_latex:master Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/gradio/routes.py", line 422, in run_predict output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1323, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 1067, in call_function prediction = await utils.async_iteration(iterator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 336, in async_iteration return await iterator.anext() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 329, in anext return await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run result = context.run(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gradio/utils.py", line 312, in run_sync_iterator_async return next(iterator) ^^^^^^^^^^^^^^ File "/home/code/gpt_academic/toolbox.py", line 119, in decorated yield from f(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt, *args) File "/home/code/gpt_academic/request_llms/bridge_all.py", line 783, in predict yield from method(inputs, llm_kwargs, *args, **kwargs) File "/home/code/gpt_academic/request_llms/bridge_google_gemini.py", line 105, in predict raise RuntimeError('对话错误') RuntimeError: 对话错误

我换了美国的节点就可以成功使用gemini了

from gpt_academic.

Small-Crocodile avatar Small-Crocodile commented on June 1, 2024

from gpt_academic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.