hanhsia
hanhsia
> > Can confirm that `5.0.0-beta.25` works on Azure App Service. The only requirement is setting the environment variable `AUTH_URL` to `https://${local.frontend_name}.azurewebsites.net/api/auth`, which in our case, we do with terraform....
Here is my way to configure it: var httpClient = new HttpClient { Timeout = TimeSpan.FromMinutes(3), }; kernelBuilder.AddAzureOpenAIChatCompletion(deploymentName, _options.Endpoint, _options.Key, httpClient: httpClient);
then use this way: var clientOptions = new OpenAIClientOptions(); clientOptions.Retry.MaxRetries = 2; clientOptions.Retry.NetworkTimeout = TimeSpan.FromMinutes(3); var openAIClient = new OpenAIClient(new Uri(_options.Endpoint), _options.Token, clientOptions); kernelBuilder.AddAzureOpenAIChatCompletion(modelName, openAIClient);
another way to solve this issue is you can pass in a Service provider when you add this plugin: kernel.Plugins.AddFromType("TimePlugin",sp); I don't like this way. it's better to resolve services...
> For azure, please call the override of `AddOpenAIChatCompletion` that accepts the deployment endpoint url. > > https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Experimental/Agents/AgentBuilder.cs#L108 Hi crickman, I didn't find the override of AddOpenAIChatCompletion from your link....
But I have called WithAzureOpenAIChatCompletion for agent which i have mentioned in my description.
I believe this is a bug instead of a question because Agent Construction in Agent.cs always create kernel with AddOpenAIChatCompletion. So the kernel in agent always use https://github.com/microsoft/semantic-kernel/blob/88bdb1155e148c98a72b171400cdc0ad0687ddae/dotnet/src/Experimental/Agents/Internal/Agent.cs#L124 this.Kernel =...
I also encountered the same error with Asynchronous Filter enabled.
compared the raw data between aync filter mode and standard mode. The difference is there are additional data received which doesn't include any delta payload in async filter mode: data:...
From this link, every metric supports only one Aggregation Type. But it's not correct. We can specify Aggregation type to get Maximum, Maximum and other aggregation type data. And if...