la-famiglia-jst2324 / parma-analytics

ParmaAI analytics repository providing data processing and inference.
3 stars 0 forks source link

openai 429 Too Many Requests Error #126

Open egekocabas opened 9 months ago

egekocabas commented 9 months ago

@la-famiglia-jst2324/analytics

While testing sourcing modules we came across below logs:

DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/completions', 'files': None, 'json_data': {'model': 'gpt-3.5-turbo-instruct', 'prompt': 'I want you to act as a short news headline generator. Given a concise detail of a news event for a company Personio:\nPersonio API documentation\nGenerate informative news headline of 4-7 words. Consider tone to be professional\n', 'max_tokens': 200}}

DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 429, b'Too Many Requests', [(b'Date', b'Wed, 31 Jan 2024 17:50:35 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Content-Length', b'476'), (b'Connection', b'keep-alive'), (b'retry-after', b'20'), (b'retry-after-ms', b'20000'), (b'vary', b'Origin'), (b'x-ratelimit-limit-requests', b'200'), (b'x-ratelimit-limit-tokens', b'150000'), (b'x-ratelimit-remaining-requests', b'46'), (b'x-ratelimit-remaining-tokens', b'149800'), (b'x-ratelimit-reset-requests', b'18h26m49.281s'), (b'x-ratelimit-reset-tokens', b'80ms'), (b'x-request-id', b'a42d04940dd26e56e22497ac5729f910'), (b'strict-transport-security', b'max-age=15724800; includeSubDomains'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Server', b'cloudflare'), (b'CF-RAY', b'84e3cc411a296385-LHR'), (b'alt-svc', b'h3=":443"; ma=86400')])
OguzKaanImamoglu commented 9 months ago

image