ZIm/crates/assistant/src
Marshall Bowers 0d26beb91b
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)).
2024-05-10 13:19:21 -04:00
..
completion_provider Add configurable low-speed timeout for OpenAI provider (#11668) 2024-05-10 13:19:21 -04:00
assistant.rs New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00
assistant_panel.rs windows: Support all OpenType font features (#10756) 2024-04-26 13:58:12 -07:00
assistant_settings.rs Add configurable low-speed timeout for OpenAI provider (#11668) 2024-05-10 13:19:21 -04:00
codegen.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
completion_provider.rs Add configurable low-speed timeout for OpenAI provider (#11668) 2024-05-10 13:19:21 -04:00
embedded_scope.rs File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
prompts.rs Allow AI interactions to be proxied through Zed's server so you don't need an API key (#7367) 2024-03-19 19:22:26 +01:00
saved_conversation.rs assistant2: Add new conversation button, that also saves the current conversation (#11522) 2024-05-07 18:16:48 -04:00
streaming_diff.rs Allow AI interactions to be proxied through Zed's server so you don't need an API key (#7367) 2024-03-19 19:22:26 +01:00