Skip to content
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

Microsoft.SemanticKernel.HttpOperationException when using MistralAIChatCompletionService #6

Open
TRybina132 opened this issue Mar 8, 2024 · 0 comments

Comments

@TRybina132
Copy link

Describe the bug
I'm using latest version 1.5.0 of mistral connector for semantic kernel and methods GetStreamingChatMessageContentsAsync, GetChatMessageContentAsync from MistralAIChatCompletionService
I receive this exception(in previous version there was no exception):

Microsoft.SemanticKernel.HttpOperationException: Unprocessable Entity
---> System.Net.Http.HttpRequestException: Exception of type 'System.Net.Http.HttpRequestException' was thrown.
--- End of inner exception stack trace ---
at Microsoft.SemanticKernel.Connectors.Mistral.MistralClientCore.CallMistralAuthedAsync(String url, StringContent content)
at Microsoft.SemanticKernel.Connectors.Mistral.MistralClientCore.CallMistralChatEndpointAsync(ChatHistory chat, MistralPromptExecutionSettings textExecutionSettings)
at Microsoft.SemanticKernel.Connectors.Mistral.MistralClientCore.GetChatMessageContentsAsync(ChatHistory chat, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken)
at Microsoft.SemanticKernel.ChatCompletion.ChatCompletionServiceExtensions.GetChatMessageContentAsync(IChatCompletionService chatCompletionService, ChatHistory chatHistory, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken)

What can it be?

To Reproduce
Here is bug reproduction repository: https://github.com/TRybina132/MistralConnectorBug

Expected behavior
No exception is thrown and method returns result.

Platform

  • OS: Windows, Mac
  • Language: C#
  • Source: NuGet package version 1.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant