Skip to content

Update to M.E.AI 9.3.0-preview.1.25161.3 #7414

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

Merged
merged 1 commit into from
Mar 12, 2025
Merged

Conversation

stephentoub
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings March 11, 2025 21:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates various chat client implementations and chat template builders from using IList to IEnumerable for improved flexibility in handling message collections. It also adds a unique ResponseId in the pipeline chat client and standardizes parameter types across multiple client implementations.

  • Changed parameter types in GetResponseAsync and GetStreamingResponseAsync methods.
  • Updated BuildPrompt methods in chat template builders.
  • Added a ResponseId property in the chat response update.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Microsoft.ML.GenAI.Core/CausalLMPipelineChatClient.cs Updated method signatures and added ResponseId generation.
src/Microsoft.ML.GenAI.LLaMA/Llama3CausalLMChatClient.cs Updated method signatures; includes initialization of StopSequences.
src/Microsoft.ML.GenAI.Core/Utility/IChatTemplateBuilder.cs Updated BuildPrompt parameter type to IEnumerable.
src/Microsoft.ML.GenAI.Phi/Phi3/Phi3CausalLMChatClient.cs Updated method signatures for consistency with IEnumerable.
src/Microsoft.ML.GenAI.Phi/Phi3/Phi3ChatTemplateBuilder.cs Updated BuildPrompt parameter type to IEnumerable.
src/Microsoft.ML.GenAI.LLaMA/Llama3_1ChatTemplateBuilder.cs Updated BuildPrompt parameter type to IEnumerable.
Comments suppressed due to low confidence (1)

src/Microsoft.ML.GenAI.LLaMA/Llama3CausalLMChatClient.cs:52

  • Using [] to initialize StopSequences is not valid C# syntax. Replace it with a proper empty list initialization such as new List() or Array.Empty() depending on the expected type.
options.StopSequences ??= [];

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@ericstj
Copy link
Member

ericstj commented Mar 12, 2025

/ba-g all failures are covered by known issues.

@ericstj ericstj merged commit 073516f into dotnet:main Mar 12, 2025
21 of 25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants