Skip to content

Commit

Permalink
feat(ModelType): add support for gpt-4o-mini (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
realdavidvega authored Sep 11, 2024
1 parent 1a243ce commit f51bbb3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ sealed class ModelType(
GPT_4_0613,
GPT_4_32K_0613_FUNCTIONS,
GPT_4O,
GPT_4O_MINI,
GPT_4O_2024_05_13,
)
val all: List<ModelType> = listOf(
Expand All @@ -59,6 +60,7 @@ sealed class ModelType(
GPT_4_32_K_0314,
GPT_4_32K_0613_FUNCTIONS,
GPT_4O,
GPT_4O_MINI,
GPT_4O_2024_05_13,
GPT_4_TURBO_1106_PREVIEW,
GPT_4_VISION_PREVIEW,
Expand Down Expand Up @@ -149,6 +151,9 @@ sealed class ModelType(
object GPT_4O :
ModelType("gpt-4o", O200K_BASE, 128000, tokensPerMessage = 3, tokensPerName = 2, tokenPadding = 5)

object GPT_4O_MINI :
ModelType("gpt-4o-mini", O200K_BASE, 128000, tokensPerMessage = 3, tokensPerName = 2, tokenPadding = 5)

object GPT_4O_2024_05_13 :
ModelType("gpt-4o-2024-05-13", O200K_BASE, 128000, tokensPerMessage = 3, tokensPerName = 2, tokenPadding = 5)

Expand Down

0 comments on commit f51bbb3

Please sign in to comment.