Skip to content

add new chat models from January 25th #44

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

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion src/main/kotlin/com/cjcrafter/openai/Models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ object Models {
// GPT 4.0 //
/////////////////////////////////////////////////////

/**
* `gpt-4` Turbo. Has a context window of 128,000 tokens with training
* data up to April 2023. This model is intended to reduce "laziness"
* where the model doesn't complete the task. Returns a maximum of 4,096
* output tokens.
*/
const val GPT_4_0125_PREVIEW = "gpt-4-0125-preview"

/**
* Points to the currently supported version of `gpt-4` turbo.
*/
const val GPT_4_TURBO_PREVIEW = "gpt-4-turbo-preview"

/**
* `gpt-4` Turbo. Has a context window of 128,000 tokens with training
* data up to April 2023. This model has improved instruction following,
Expand All @@ -38,12 +51,18 @@ object Models {
*/
const val GPT_4_1106_PREVIEW = "gpt-4-1106-preview"

/**
* Points to the currently supported version of `gpt-4` turbo with
* vision.
*/
const val GPT_4_VISION_PREVIEW = "gpt-4-vision-preview"

/**
* `gpt-4` Turbo with vision. Has a context window of 128,000 tokens with
* training data up to April 2023. Has the same capabilities as
* [GPT_4_1106_PREVIEW], but can also understand images.
*/
const val GPT_4_VISION_PREVIEW = "gpt-4-vision-preview"
const val GPT_4_1106_VISION_PREVIEW = "gpt-4-1106-vision-preview"

/**
* Points to the currently supported version of `gpt-4`.
Expand Down Expand Up @@ -103,6 +122,12 @@ object Models {
// GPT 3.5 //
/////////////////////////////////////////////////////

/**
* Snapshot of `gpt-3.5-turbo` with higher accuracy in responding in
* requested formats. Returns a maximum of 4,096 output tokens.
*/
const val GPT_3_5_TURBO_0125 = "gpt-3.5-turbo-0125"

/**
* Has a context window of 16,385 tokens with training data up to
* September 2021. This model has improved instruction following, JSON
Expand Down