snowby666 / poe-api-wrapper

👾 A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! 🚀
https://pypi.org/project/poe-api-wrapper/
GNU General Public License v3.0
817 stars 96 forks source link

Retrying request 1/3 times #58

Closed bluusun closed 11 months ago

bluusun commented 11 months ago

I need to switch off this Retrying asap. When queries a slow (does not matter what timeout I set) it keeps retrying and wasting requests for me. The next still times out (these are queries with longer documents).

Retrying request 1/3 times...

It is much better for me to query by chat ID as the content will be available eventually.

How can I switch off this behavior? Just went through 1000 paid queries in a few minutes :(

snowby666 commented 11 months ago

I'm rewriting the retry function since poe added new logic to their api. The current one checks for error message then delete it and resend the message. But sometimes the text is not fully generated so theres a dead lock somewhere.

bluusun commented 11 months ago

Thanks! For now I uninstalled pip and cloned repo and changed value of retry_attempts. Current pip version does 4 queries for every prompt for me :(

bluusun commented 11 months ago

Made changes in code but same behavior. This is so frustrating since I also never get the results...

iDB 2023-09-23 at 8 01 31 PM

bluusun commented 11 months ago

Is there any reliable way to switch this behavior off? It makes 10 -15 requests for one request that I add. It is up to 50 requests per original request now.

bluusun commented 11 months ago

Latest version seems to have that issue less (or not at all anymore) :) did you change something?

snowby666 commented 11 months ago

This is fixed in the new version