I wanted to test out the chatgpt feature. I have generated the secret key from OpenAI and changed the Site property OpenAI_SecretKey. When I open the "open conversation" and write something and press send I get "429 Too Many Requests "
Hi Joachim,
Are you able to check Integration logs in Service Center if there are further logs? One of the common 429 is that quota for api request already exceeded.
John
Action: Openai.PostCompletions
Endpoint: https://api.openai.com/v1/chat/completions
Stack: 429 Too Many Requests at ssSQL.CcOpenai.ActionPostCompletions(HeContext heContext, ICcOpenaiCallbacks _callbacks, STPostCompletionsRequestStructure inParamRequest, STPostCompletionsResponseStructure& outParamResponse)
My account in OpenAI is a free user (if that matters)
Free should be ok. You can change the integration log to full to see more details https://www.outsystems.com/forums/discussion/33272/setting-logging-level-of-a-rest-api/.
The full error log is attached
The "429 Too Many Requests" error typically indicates that your application is sending too many requests to the OpenAI API in a short period.
Troubleshooting Steps
Check API Usage Limits:
Implement Rate Limiting:
Check for API Key Issues:
Handle Retries Gracefully:
Reduce Request Frequency: