language_models: Fix tool_choice null issue for other providers (#34554)

Follow up: #34532

Closes #35434 

Mostly fixes a issue were when the tool_choice is none it was getting
serialised as null. This was fixed for openrouter just wanted to follow
up and cleanup for other providers which might have this issue as this
is against the spec.

Release Notes:

- N/A
9f749881b3Umesh Yadav committed on 9/2/2025, 11:22:57 PM· committed by GitHubparent946efb0
3 files changedLine totals unavailable