Skip to content

Commit

Permalink
feat(BE-188): As a user, I want able to use claude api(anthropic-client)
Browse files Browse the repository at this point in the history
 - update GPT_4_TURBO_PREVIEW to GPT_4_TURBO
  • Loading branch information
hanrw committed Apr 13, 2024
1 parent 2fe8a6d commit 0e386a7
Showing 1 changed file with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,30 @@ import kotlin.jvm.JvmInline

@Serializable
@JvmInline
/**
* https://platform.openai.com/docs/models/continuous-model-upgrades
*/
value class Model(val value: String) {
companion object {
val GPT_3_5_TURBO = Model("gpt-3.5-turbo")
val GPT_3_5_TURBO_0125 = Model("gpt-3.5-turbo-0125")
val GPT_4 = Model("gpt-4")

/**
* GPT-4 Turbo
* The latest GPT-4 model intended to reduce cases of “laziness” where the model doesn’t complete a task. Returns a maximum of 4,096 output tokens.
* New Updated GPT 3.5 Turbo
* The latest GPT-3.5 Turbo model with higher accuracy at responding in requested formats and a fix for a bug which caused a text encoding issue for non-English language function calls.
* Returns a maximum of 4,096 output tokens. Learn more.
*/
val GPT_4_TURBO_PREVIEW = Model("gpt-4-0125-preview")
val GPT_3_5_TURBO_0125 = Model("gpt-3.5-turbo-0125")

/**
* Currently points to gpt-4-0125-preview.
*
* GPT-4 Turbo with Vision
* The latest GPT-4 Turbo model with vision capabilities.
* Vision requests can now use JSON mode and function calling.
* Currently points to gpt-4-turbo-2024-04-09.
* 128,000 tokens Up to Dec 2023
*/
val GPT_4_TURBO = Model("gpt-4-turbo-preview")
val GPT4_VISION_PREVIEW = Model("gpt-4-vision-preview")
val GPT_4_TURBO = Model("gpt-4-turbo")
val GPT4_VISION_PREVIEW = Model("gpt-4-turbo-2024-04-09")
val DALL_E_2 = Model("dall-e-2")
val DALL_E_3 = Model("dall-e-3")
}
Expand Down

0 comments on commit 0e386a7

Please sign in to comment.