zed/assets
jvmncs c71f052276
Add ability to use o1-preview and o1-mini as custom models (#17804)
This is a barebones modification of the OpenAI provider code to
accommodate non-streaming completions. This is specifically for the o1
models, which do not support streaming. Tested that this is working by
running a `/workflow` with the following (arbitrarily chosen) settings:

```json
{
  "language_models": {
    "openai": {
      "version": "1",
      "available_models": [
        {
          "name": "o1-preview",
          "display_name": "o1-preview",
          "max_tokens": 128000,
          "max_completion_tokens": 30000
        },
        {
          "name": "o1-mini",
          "display_name": "o1-mini",
          "max_tokens": 128000,
          "max_completion_tokens": 20000
        }
      ]
    }
  },
}
```

Release Notes:

- Changed  `low_speed_timeout_in_seconds` option to `600` for OpenAI
provider to accommodate recent o1 model release.

---------

Co-authored-by: Peter <peter@zed.dev>
Co-authored-by: Bennet <bennet@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-13 15:42:15 -04:00
..
fonts Fix font selection on macOS (#13615) 2024-06-27 17:02:45 -06:00
icons chore: Remove unused pin_alt.svg icon (#17450) 2024-09-05 21:42:42 +02:00
keymaps Add keybinding to swap pane items (#15583) 2024-09-13 15:17:01 -04:00
prompts Have models indicate code locations in workflows using textual search, not symbol names (#17282) 2024-09-02 18:20:05 -07:00
settings Add ability to use o1-preview and o1-mini as custom models (#17804) 2024-09-13 15:42:15 -04:00
sounds Update collaboration sounds, add sounds to screensharing 2023-07-04 16:18:42 -04:00
themes Revert accidental one theme changes (#17273) 2024-09-02 14:48:23 -04:00