Skip to content

Add Chat/EmbeddingGeneration/SpeechToTextOptions.Merge #6522

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stephentoub
Copy link
Member

@stephentoub stephentoub commented Jun 16, 2025

Provides a built-in way to combine one options instance into another. As with Clone, having this built-in enables us to keep them in-sync with additions we add over time. To create a new instance that combines two other instances, Clone+Merge may be used together.

This also fixes a bug where EmbeddingGenerationOptions.Clone and SpeechToTextOptions.Clone were not copying over RawRepresentationFactory.

cc: @jeffhandley, @eiriktsarpalis, @rogerbarreto, @westey-m

Microsoft Reviewers: Open in CodeFlow

Provides a built-in way to combine one options instance into another. As with Clone, having this built-in enables us to keep them in-sync with additions we add over time. To create a new instance that combines two other instances, Clone+Merge may be used together.

This also fixes a bug where EmbeddingGenerationOptions.Clone and SpeechToTextOptions.Clone were not copying over RawRepresentationFactory.
@stephentoub stephentoub requested a review from a team as a code owner June 16, 2025 20:47
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ai Microsoft.Extensions.AI libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants