Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gpt-4-1106-preview model #49

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

JosephTLyons
Copy link
Contributor

@JosephTLyons JosephTLyons commented Nov 14, 2023

I'm not entirely sure if anything else here is needed. I opened a PR to the tiktoken submodule here - assuming that might need to be merged in first before this one could be considered?

@JosephTLyons JosephTLyons changed the title Add gpt-4-1106-preview Add gpt-4-1106-preview model Nov 14, 2023
@zurawiki
Copy link
Owner

Thanks for the PR! Linking to the docs here. This tiktoken-rs module doesn't depend on the python code. To get around that, we rewrote some of the wrapping python logic in rust for consistency.

@zurawiki zurawiki merged commit 6fd80d4 into zurawiki:main Nov 14, 2023
8 checks passed
JosephTLyons added a commit to zed-industries/zed that referenced this pull request Nov 14, 2023
The PR to add the `gpt-4-1106-preview` model was merged:

zurawiki/tiktoken-rs#49
@JosephTLyons JosephTLyons deleted the add-gpt-4-1106-preview branch November 14, 2023 14:00
@JosephTLyons
Copy link
Contributor Author

Awesome - Thanks for the info and for accepting the PR!

JosephTLyons added a commit to zed-industries/zed that referenced this pull request Nov 14, 2023
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](zurawiki/tiktoken-rs#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>"
  },
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants