TLDR - You can test my implementation at https://privategpt.baldacchino.net . If this appears slow to first load, what is happening behind the scenes is a 'cold start' within Azure Container Apps. ...
shanebaldacchino sorry to bother you again but I could finally manage some time to rethink and redo all over again. Something is wrong, I really can't find it myself. These are my variables:
I still get the same error as in the comment above. The log stream on the chatbot-ui shows:
OpenAI API returned an error 404: {"error":{"code":"404","message": "Resource not found"}} [Error: OpenAI API returned an error]
I went over and over again through it and I can't see the mistake. The key, URL, deployment id - that should be 100% correct. In fact I was successful with the following postman request:
This is a proof that environment variables from the picture are correct. And believe me the key is also correct. The only difference I saw is that postman sends key in request header as:
api-key: "**************************************"
Really don't know what to do now. Should I name variable API-KEY instead of OPENAI_API_KEY ?