# language_models: Fix tool_choice null issue for other providers \(\#34554\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9f749881b31a2cd10fefb240068e6bb1bd46c709)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9f749881b31a2cd10fefb240068e6bb1bd46c709

Requested commit: 9f749881b31a2cd10fefb240068e6bb1bd46c709

Commit: 9f749881b31a2cd10fefb240068e6bb1bd46c709

Tree: 530977be81a6b5eb9b75cf9e4226b79dfdd1078d

Author: Umesh Yadav

Committer: GitHub

## Message

```
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
```

## Parents

- [946efb03df74a90dcaa15b2838820fda9d7e1daf](https://git.cafe/gitcafe/zed/commit/946efb03df74a90dcaa15b2838820fda9d7e1daf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9f749881b31a2cd10fefb240068e6bb1bd46c709?format=markdown)
