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

Update M.E.AI to 9.1.0-preview.1.25064.3 #64

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Conversation

stephentoub
Copy link
Contributor

No description provided.

@tghamm
Copy link
Owner

tghamm commented Jan 16, 2025

Hi @stephentoub after updating Microsoft.Extensions.AI and Microsoft.SemanticKernel to the latest on this PR, I now get an exception in my test that attempts to bootstrap SK and make a call using a function. This seemed to work fine in the previous iteration. Is this iteration simply incompatible or am I missing something? Thanks in advance.

@tghamm
Copy link
Owner

tghamm commented Jan 16, 2025

For context:
System.MissingMethodException: 'Method not found: 'Microsoft.Extensions.AI.ChatResponseFormatJson Microsoft.Extensions.AI.ChatResponseFormat.ForJsonSchema(System.String, System.String, System.String)'.'
When invoking var result = await chatCompletionService.GetChatMessageContentAsync( history, executionSettings: promptExecutionSettings, kernel: kernel );

@stephentoub
Copy link
Contributor Author

The property name changed from AdditionalProperties to AdditionalCounts, and the type of it changed as well; this was a necessary break to support summing these additional counts. This now happens e.g. in the FunctionInvokingChatClient, which might generate an additional N roundtrips to the LLM as part of invoking requested functions, in which case we want the final message it returns to include all counts and not just those associated with the final request.

Unfortunately, such binary breaks mean that two different libraries using two different incompatible versions will result in failure... I'm assuming the error you're getting is MissingMethodException or something like that? SK needs to merge and ship microsoft/semantic-kernel#10199 to resolve the issue.

@tghamm
Copy link
Owner

tghamm commented Jan 16, 2025

Makes sense, I appreciate the explanation! I can merge/ship this with release notes for SK users about waiting to upgrade until your PR has been merged and shipped over in SK.

@stephentoub
Copy link
Contributor Author

cc: @markwallace-microsoft

@tghamm tghamm merged commit 10601ab into tghamm:main Jan 16, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants