skip to Main Content

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))…

VIEW QUESTION

Masstransit does not fetch messages from azure servicesbus

Hi I have a publisher and consumer The registration for the publisher seems very simple services.AddMassTransit(x => { x.SetKebabCaseEndpointNameFormatter(); x.UsingAzureServiceBus((context, cfg) => { cfg.Host(configInstance.AzureServiceBusSettings.Connectionstring); cfg.AutoStart = true; } ); }); The registration for the consumer looks like this services.AddMassTransit(x =>…

VIEW QUESTION
Back To Top
Search