Comments (4)
@lazezo2, I would suggest using the poe-api
pypi 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.
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.
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.
closing as I think this issue is resolved, reopen if more help is needed
from gpt4free.
Related Issues (20)
- export G4F_PROXY how to added proxy ? HOT 1
- Apple Silicone Neural Engine: Core ML model package format HOT 2
- How to use vision models in API?
- We block VPNs to prevent spam and abuse. If you are using a VPN, please disable it to access Perplexity. HOT 2
- ResponseStatusError: Response 401: {"message":"401 Unauthorized"}
- Bing TypeError: Received message 257:None is not str HOT 5
- An error occured: Liaobots: ResponseStatusError: Response 500: Error HOT 4
- ChatGPT provider fails to read .har file HOT 31
- Gpt
- 为什么使用V2rayN无法访问啊,而使用WARP就可以?Cloudflare错误:响应 403:检测到 Cloudflare HOT 1
- Windows 安装下载最新版本里找不到g4f.webview.*.exe 该怎么安装 HOT 2
- 可以获取API key吗?怎么获取啊? HOT 2
- how to run nodriver in docker for you.com ? HOT 4
- (HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:1337 -> 0.0.0.0:0: listen tcp 0.0.0.0:1337: bind: An attempt was made to access a socket in a way forbidden by its access permissions. HOT 2
- g4f.errors.ResponseStatusError: Response 403: {"detail":{"error":"Not authenticated"}} HOT 4
- OpenAI ChatGPT access_key HOT 1
- Curl_cffi async event loop fix? HOT 1
- 3.0.7 provider base class error Bing: TypeError: BaseSession.__init__() got an unexpected keyword argument 'proxy' HOT 4
- How to use OpenAI ? HOT 3
- Fails to read har file with You provider (MissingRequirementsError) in Jupyter Notebook HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt4free.