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

Remove AIContent.ModelId, add StreamingChatCompletionUpdate.ModelId #5535

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Oct 18, 2024

Closes #5529

This is a source and binary break. We should discuss when best to merge, and merge other similar breaks at the same time. We've had a few discussions about ctors to remove and things like that.
cc: @SteveSandersonMS, @eiriktsarpalis

Microsoft Reviewers: Open in CodeFlow

@stephentoub stephentoub requested a review from a team as a code owner October 18, 2024 03:15
@eiriktsarpalis eiriktsarpalis added the * NO MERGE * Do not merge this PR as long as this label is present. label Oct 18, 2024
/// Gets or sets the model ID used to generate the content.
/// </summary>
public string? ModelId { get; set; }

/// <summary>Gets or sets additional properties for the content.</summary>
public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
Copy link
Member

@eiriktsarpalis eiriktsarpalis Oct 18, 2024

Choose a reason for hiding this comment

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

Unrelated to this change per se, but should we also consider scoping AdditionalProperties to the session rather than individual content values?

Copy link
Member Author

@stephentoub stephentoub Oct 18, 2024

Choose a reason for hiding this comment

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

I'm not following. AdditionalProperties on the content is a way of adding additional provider-specific metadata to each piece of content, for example image detail on an ImageContent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-AI * NO MERGE * Do not merge this PR as long as this label is present.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisit AIContent.ModelId
2 participants