-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Bug: Exception when using Plugin and AzureSearchChatExtensionConfiguration #8488
Comments
markwallace-microsoft
added
.NET
Issue or Pull requests regarding .NET code
triage
labels
Sep 3, 2024
github-actions
bot
changed the title
Bug: Exception when using Plugin and AzureSearchChatExtensionConfiguration
.Net: Bug: Exception when using Plugin and AzureSearchChatExtensionConfiguration
Sep 3, 2024
I forgot the detailed error message:
|
@dmytrostruk - can you make sure the error message are clear on this. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 8, 2024
…n Azure/OpenAI connectors (#9150) ### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Resolves: #8072 Resolves: #8488 Azure Chat Completion with data service returns `400 (Bad Request) Invalid chat message detected: message content must be string` response when assistant message in chat history doesn't contain `content` property or when this property is an array of content items. This case is applicable for function calling, where AI model returns set of tools to call instead of message content. This PR contains a change to set `content` property as an empty string only for cases when content doesn't exist (`null`). ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https:/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https:/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If you use a custom plugin while simultaneously using AzureSearchChatExtensions, an exception is thrown after the plugin method is executed. The plugin method itself is executed correctly.
Without plugin but with AzureSearchChatExtension, it works all fine.
Without AzureSearchChatExtension but with Plugin, it works all fine. (Of Course without my Data in Azure Blob-Storage)
To Reproduce
A prompt which will trigger the Plugin-Method will cause an Exception.
Here ist some sample-Code:
My Program.cs
My Code
Here my Plugin-Code (simple sample)
Screenshots
Platform
The text was updated successfully, but these errors were encountered: