# Add gpt-4-1106-preview model \(\#3319\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ac6babde5a41e949085f80584e6a097e8121d9c2

Requested commit: ac6babde5a41e949085f80584e6a097e8121d9c2

Commit: ac6babde5a41e949085f80584e6a097e8121d9c2

Tree: c82cfeda8cce87ea7f1f060f4e300df995cd351d

Author: Joseph T\. Lyons

Committer: GitHub

## Message

````
Add gpt-4-1106-preview model (#3319)

This PR adds the `gpt-4-1106-preview` model. It required forking two
repos from different organizations, as one is a submodule of another.

Update 1:

~Currently, I'm just temporarily pointing towards a personal fork of the
repo, but once [this
PR](https://github.com/zurawiki/tiktoken-rs/pull/49) lands, we can
switch back to using the official crate.~

Update 2:

~PR was merged, we are now pointing to a specific commit on the original
official repo - may want to bump it to an official version once a new
one has been released.~

Update 3:

Author published a [new
version](https://crates.io/crates/tiktoken-rs/0.5.7). Now, we are back
to relying on the official crate.

<img width="1118" alt="SCR-20231114-ibgs"
src="https://github.com/zed-industries/zed/assets/19867440/cc2657b6-98f9-413f-9a0c-f337636f367c">

Release Notes:

- Added support for the
[`gpt-4-1106-preview`](https://openai.com/blog/new-models-and-developer-products-announced-at-devday)
model in the assistant panel.
- Updated the `assistant.default_open_ai_model` setting to default to
`gpt-4-1106-preview`. To override the default, use the following snippet
to your `settings.json` file:

```rs
"assistant": {
    // 1. "gpt-3.5-turbo-0613""
    // 2. "gpt-4-0613""
    // 3. "gpt-4-1106-preview"
    "default_open_ai_model": "<Your choice of model here>"
  },
```
````

## Parents

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

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

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