Hello There,
Would love to get help here, thanks !
I changed and deleted my old OpenAI api Key in place for a new one which caused the askchatgpt custom action to stop working. Whenever I run a test request It now displays an error saying that my API key is wrong and showing the old one I deleted. And this despite the fact I have changed the active openai key to a new code.
Hello, please try to create a new custom action and include the new API key. If the issue persists, you can use the “Chat GPT” component in the Marketplace.
Thanks for your raid reply @Ali-Bazzi !
In the end I created my onw custom action to connect to Open AI API and using the model they mentionned on their website here
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Say this is a test!"}],
"temperature": 0.7
}'
I was never able to solve the issue using the pre-built Adalo action “Ask Chat GPT”. It seems lots of users have had the same issue, maybe something to debug here ?
{
"error": {
"code": null,
"message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accesing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
"param": null,
"type": "invalid_request_error"
}
}