# Add configurable low-speed timeout for OpenAI provider \(\#11668\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0d26beb91ba751e24ed7c109ab71ff8dfac0d137

Requested commit: 0d26beb91ba751e24ed7c109ab71ff8dfac0d137

Commit: 0d26beb91ba751e24ed7c109ab71ff8dfac0d137

Tree: 2eb39c620325551b17679583614683caffb9acab

Author: Marshall Bowers

Committer: GitHub

## Message

````
Add configurable low-speed timeout for OpenAI provider (#11668)

This PR adds a setting to allow configuring the low-speed timeout for
the Assistant when using the OpenAI provider.

The `low_speed_timeout_in_seconds` accepts a number of seconds that the
HTTP client can go below a minimum speed limit (currently set to 100
bytes/second) before it times out.

```json
{
  "assistant": {
    "version": "1",
    "provider": { "name": "openai", "low_speed_timeout_in_seconds": 60 }
  },
}
```

This should help the case where the `openai` provider is being used with
a local model that requires higher timeouts.

Issue: https://github.com/zed-industries/zed/issues/9913

Release Notes:

- Added a `low_speed_timeout_in_seconds` setting to the Assistant's
OpenAI provider
([#9913](https://github.com/zed-industries/zed/issues/9913)).
````

## Parents

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

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