Hi there, if I try to chat with gpt-4o with Azure OpenAI using the latest main branch it breaks mid-stream, with an unhandled error:
2024-10-14T16:15:48.628Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo 2024-10-14T16:15:54.068Z warn: [OpenAIClient.chatCompletion][stream] Unhandled error type 2024-10-14T16:15:55.756Z warn: [OpenAIClient.chatCompletion][finalChatCompletion] Unhandled error type 2024-10-14T16:15:55.757Z error: [OpenAIClient.chatCompletion] Unhandled error type Error: Cannot read properties of undefined (reading 'content') 2024-10-14T16:15:55.757Z error: [handleAbortError] AI response error; aborting request: Error: Cannot read properties of undefined (reading 'content') 2024-10-14T16:15:55.758Z error: [handleAbortError] error while trying to abort message Cannot set headers after they are sent to the client
I tried to change API version (now using 2024-09-01-preview, but same result with older ones), remove the streamRate parameter in the config, switched the model to the gpt-4o-2024-08-06 version, but no dice. Anybody else has faced this?