Skip to content

Remove the message copilot_cache_control field from a context where there is no understanding of it #554

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 2 commits into from
Aug 12, 2025

Conversation

shaunm-msft
Copy link
Contributor

Remove the message copilot_cache_control field if it exists when calling an OpenAI compatible endpoint where it might not be understood. The result of not understanding the field can be benign or result in a rejection.

…points directly. It's a CAPI field and some LLMs will issue an error on this field because it isn't a recognized field.
@roblourens roblourens enabled auto-merge August 12, 2025 00:07
@roblourens roblourens added this to the August 2025 milestone Aug 12, 2025
@roblourens
Copy link
Member

Thanks!

@roblourens roblourens added this pull request to the merge queue Aug 12, 2025
Merged via the queue into microsoft:main with commit 4f90787 Aug 12, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants