what should I do to make the azure openai return stream events with java 11
I am using this code to return a stream response when using azure openai api: public void getChatCompletion(SseEmitter emitter, String prompt, String azureOpenaiKey) { String endpoint = "https://xxxx.openai.azure.com/"; String deploymentOrModelId = "xxx-ai"; OpenAIClient client = new OpenAIClientBuilder() .endpoint(endpoint) .credential(new AzureKeyCredential(azureOpenaiKey))…