language_models: Prevent sending the tools object to unsupported models for Ollama (#37221)
Closes #32758
Release Notes:
- Resolved an issue with the Ollama provider that caused requests to
fail with a 400 error for models that don't support tools. The tools
object is now only sent to compatible models to ensure successful
requests.
63b3839a83Umesh Yadav committed on 9/2/2025, 11:28:36 PM· committed by GitHubparent9f74988