Thank you for providing more information about your chatbot implementation. It's good to know that you are using "swedencentral," which is among the supported regions for GPT-4o.
One possible reason for your issue is that the model is not trained on enough data to handle all possible user inputs.
Another possibility is that there may be an issue with the way the model is being used in your chat bot. It's possible that the streaming interface or the way the messages are being submitted to the thread may be causing the issue.
Since you mentioned that the OpenAI API works as expected with more or less identical code, it's possible that the issue is specific to the way the GPT-4o model is being used in your chat bot.
I would recommend checking the OpenAI API documentation for any specific requirements or limitations for using the GPT-4o model. You can also try testing the model with different user inputs to see if the issue persists. If the issue continues, you may want to consider reaching out to Azure support for further assistance.