# Add reasoning_effort field to OpenAI compatible model configuration \(\#50582\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 49ebe4bd6197003cc5dec97c1989a4b2a70601c8

Requested commit: 49ebe4bd6197003cc5dec97c1989a4b2a70601c8

Commit: 49ebe4bd6197003cc5dec97c1989a4b2a70601c8

Tree: d10d0167c4cc0ec13aa24b2aed663791afade93b

Author: Vimsucks

Committer: GitHub

## Message

````
Add reasoning_effort field to OpenAI compatible model configuration (#50582)

Some model like glm-5、kimi-k2.5 support reasoning, but require
reasoning_effort parameter

This pr add support for setting reasoing_effort for openai compatible
models

Tested using the following config:

```json
{
  "language_models": {
    "openai_compatible": {
      "My LiteLLM": {
        "available_models": [
          {
            "name": "glm-5",
            "display_name": "glm-5",
            "max_tokens": 73728,
            "reasoning_effort": "low"
          },
          {
            "name": "kimi-k2.5",
            "display_name": "kimi-k2.5",
            "max_tokens": 262144,
            "reasoning_effort": "low"
          }
        ]
      }
    }
  }
}

```

Release Notes:

- Added a setting to control `reasoning_effort` in custom
OpenAI-compatible models
````

## Parents

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

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