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 a5834ae commit 086edf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ value class Model(val value: String) {
* 128,000 tokens Up to Dec 2023
*/
val GPT_4_TURBO = Model("gpt-4-turbo")
val GPT4_VISION_PREVIEW = Model("gpt-4-turbo-2024-04-09")

/**
* GPT-4 model with the ability to understand images, in addition to all other GPT-4 Turbo capabilities.
* This is a preview model, we recommend developers to now use gpt-4-turbo which includes vision capabilities.
* Currently points to gpt-4-1106-vision-preview.
*/
val GPT4_VISION_PREVIEW = Model("gpt-4-vision-preview")
val DALL_E_2 = Model("dall-e-2")
val DALL_E_3 = Model("dall-e-3")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class ModelTest {
fun `should return correct model values`() {
assertEquals("gpt-3.5-turbo", Model.GPT_3_5_TURBO.value)
assertEquals("gpt-3.5-turbo-0125", Model.GPT_3_5_TURBO_0125.value)
assertEquals("gpt-4", Model.GPT_4.value)
assertEquals("gpt-4-0125-preview", Model.GPT_4_TURBO_PREVIEW.value)
assertEquals("gpt-4-turbo-preview", Model.GPT_4_TURBO.value)
assertEquals("gpt-4-turbo", Model.GPT_4_TURBO.value)
assertEquals("gpt-4-vision-preview", Model.GPT4_VISION_PREVIEW.value)
assertEquals("dall-e-2", Model.DALL_E_2.value)
assertEquals("dall-e-3", Model.DALL_E_3.value)
Expand Down

0 comments on commit 086edf4

Please sign in to comment.