Code Monkey home page Code Monkey logo

Comments (4)

xtekky avatar xtekky commented on May 21, 2024 1

@lazezo2, I would suggest using the poe-apipypi package with tokens generated with quora.Account.create, it may solve your problem, even if this repo contains a local version of the mentionned package

repo of poe-api: https://github.com/ading2210/poe-api

from gpt4free.

taiyi747 avatar taiyi747 commented on May 21, 2024

I would suggest turning on logging = True and debug = True, and sending the error message to facilitate the investigation of the cause of the error.

from gpt4free.

lazezo2 avatar lazezo2 commented on May 21, 2024

i increase wait time and it work but after 20 minutes another error raise

Traceback (most recent call last):
File "openai-gpt4-main\quora\api.py", line 314, in send_message
message = self.message_queues[human_message_id].get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Python\Python311\Lib\queue.py", lin
e 179, in get
raise Empty
_queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "openai-gpt4-main\quora.py", line 504, in
post_to_chatgpt()

File "openai-gpt4-main\quora.py", line 186, in post_to_chatgpt
for response in quora.StreamingCompletion.create(model = model_type,
File "openai-gpt4-main\quora_init_.py", line 158, in create
for chunk in client.send_message(models[model], prompt):
File "openai-gpt4-main\quora\api.py", line 319, in send_message
raise RuntimeError("Response timed out.")
RuntimeError: Response timed out.

tried to catch the error, wait and retry but didn't catch he error

 try:
  for response in quora.StreamingCompletion.create(model  = model_type,
    prompt = text1,
    token  = token):
except ValueError as err:
    print(err.args)
    wait.sleep(4*60)
   # retry again also with try and except

but sees not catching error so wait and retry didn't work
any help how to wait if error happen then resume?
i use constant token at began of script, is that wrong?
do i have to create token every time i send txt?

any help

from gpt4free.

xtekky avatar xtekky commented on May 21, 2024

closing as I think this issue is resolved, reopen if more help is needed

from gpt4free.

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.