Skip to content

.Net: Add instructions checks to ToChatOptions#13169

Merged
SergeyMenshykh merged 3 commits into
microsoft:mainfrom
stephentoub:fixopenaiprompt
Sep 25, 2025
Merged

.Net: Add instructions checks to ToChatOptions#13169
SergeyMenshykh merged 3 commits into
microsoft:mainfrom
stephentoub:fixopenaiprompt

Conversation

@stephentoub

Copy link
Copy Markdown
Member

This mechanism should really be done in a polymorphic way so as to enable the derived PromptExecutionSettings to control how the ChatOptions is configured. But for now, this can be extended to recognize known names of instructions.

Fixes #13150

This mechanism should really be done in a polymorphic way so as to enable the derived PromptExecutionSettings to control how the ChatOptions is configured. But for now, this can be extended to recognize known names of instructions.
@stephentoub stephentoub requested a review from a team as a code owner September 23, 2025 02:22
@moonbox3 moonbox3 added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core labels Sep 23, 2025
@github-actions github-actions Bot changed the title Add instructions checks to ToChatOptions .Net: Add instructions checks to ToChatOptions Sep 23, 2025
@stephentoub stephentoub added this pull request to the merge queue Sep 25, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 25, 2025
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Sep 25, 2025
Merged via the queue into microsoft:main with commit 51f4fe5 Sep 25, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel.core kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.Net: Bug: ToChatOptions does not respect ChatSystemPrompt or ChatDeveloperPrompt.

4 participants