Closed PanClifton closed 4 days ago
@PanClifton Thanks for creating this issue. Unfortunately, HTTP error message is not included in the exception, so I had to add HTTP logging handler to see what an actual response was. Here is an example of such logging handler, so you can use it for your own purposes in the future: https://github.com/microsoft/semantic-kernel/blob/f5facce9ec0dc86e97a13dad0ac4c2476f218bb7/dotnet/src/InternalUtilities/samples/InternalUtilities/BaseTest.cs#L150
Based on logging, there is a following error message in response: Validation error at #/messages/0/name: Extra inputs are not permitted
.
I removed Name = "open_ai",
from ChatCompletionAgent
in your code example and it worked as expected. There could be a case that Azure OpenAI Chat Completion with data service doesn't support additional parameters in messages such as agent name.
Please let us know if that works for you. Thanks!
@dmytrostruk thanks for the fast response
It worked, thanks
Describe the bug When
InvokeStreamingAsync(...)
is called onChatCompletionAgent
who hasAzureSearchChatDataSource
connected to it fails with 400 BadRequestTo Reproduce Steps to reproduce the behavior:
Setup csproj
failing code snippet
Expected behavior InvokeStreamingAsync(...) method should start stream
Screenshots If applicable, add screenshots to help explain your problem.
Platform
Additional context Add any other context about the problem here.