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

Azure WebApp Use Pipfile.lock instead of requirements.txt

I am attempting to deploy a django web-app to an Azure web server. According to the documentation, for dependencies, it automatically looks for either a requirements.txt or a setup.py. (https://learn.microsoft.com/en-us/azure/app-service/configure-language-python#could-not-find-setuppy-or-requirementstxt). Due to a bug in one of the sub dependencies…

VIEW QUESTION
Back To Top
Search