Skip to content

Commit

Permalink
Add new GPT-4 Turbo (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
svilupp authored Apr 10, 2024
1 parent fc0073e commit 84f68cc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- Adds references to `mistral-tiny` (7bn parameter model from MistralAI) to the model registry for completeness.

### Fixed

## [0.19.0]

### Added
- [BREAKING CHANGE] The default GPT-4 Turbo model alias ("gpt4t") now points to the official GPT-4 Turbo endpoint ("gpt-4-turbo").
- Adds references to `mistral-tiny` (7bn parameter model from MistralAI) to the model registry for completeness.
- Adds the new GPT-4 Turbo model (`"gpt-4-turbo-2024-04-09"`), but you can simply use alias `"gpt4t"` to access it.

## [0.18.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PromptingTools"
uuid = "670122d1-24a8-4d70-bfce-740807c42192"
authors = ["J S @svilupp and contributors"]
version = "0.18.1"
version = "0.19.0"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
12 changes: 11 additions & 1 deletion src/user_preferences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ aliases = merge(
Dict("gpt3" => "gpt-3.5-turbo",
"gpt4" => "gpt-4",
"gpt4v" => "gpt-4-vision-preview", # 4v is for "4 vision"
"gpt4t" => "gpt-4-turbo-preview", # 4t is for "4 turbo"
"gpt4t" => "gpt-4-turbo", # 4t is for "4 turbo"
"gpt3t" => "gpt-3.5-turbo-0125", # 3t is for "3 turbo"
"ada" => "text-embedding-ada-002",
"emb3small" => "text-embedding-3-small",
Expand Down Expand Up @@ -353,6 +353,16 @@ registry = Dict{String, ModelSpec}(
1e-5,
3e-5,
"GPT-4 Turbo is an updated version of GPT4 that is much faster and the cheaper to use. 0125 refers to the release date of January 25, 2024."),
"gpt-4-turbo" => ModelSpec("gpt-4-turbo",
OpenAISchema(),
1e-5,
3e-5,
"GPT-4 Turbo is an updated version of GPT4 that is much faster and the cheaper to use. This is the general name for whatever is the latest GPT4 Turbo preview release. In April-24, it points to version 2024-04-09."),
"gpt-4-turbo-2024-04-09" => ModelSpec("gpt-4-turbo-2024-04-09",
OpenAISchema(),
1e-5,
3e-5,
"GPT-4 Turbo is an updated version of GPT4 that is much faster and the cheaper to use. 2024-04-09 refers to the release date of 9th April 2024 with knowledge upto December 2023."),
"gpt-4-turbo-preview" => ModelSpec("gpt-4-turbo-preview",
OpenAISchema(),
1e-5,
Expand Down

0 comments on commit 84f68cc

Please sign in to comment.