-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPIK-744] fix providers' models list (#1041)
* OPIK-744 openai models list * OPIK-744 anthropic models list * OPIK-744 code cleanup * OPIK-744 use existing enum for openai * OPIK-744 ignore default * OPIK-744 added missing openai models * OPIK-744 post rebase changes * OPIK-744 rename `ModelPrice` to `OpenaiModelPrice` * Revert "OPIK-744 rename `ModelPrice` to `OpenaiModelPrice`" This reverts commit c3ca2e0. * Revert "OPIK-744 use existing enum for openai" This reverts commit d18f06c * OPIK-744 post revert fixes
- Loading branch information
Showing
6 changed files
with
82 additions
and
17 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
apps/opik-backend/src/main/java/com/comet/opik/domain/llmproviders/AnthropicModelName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.comet.opik.domain.llmproviders; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
/** | ||
* This information is taken from <a href="https://docs.anthropic.com/en/docs/about-claude/models">Anthropic docs</a> | ||
*/ | ||
@RequiredArgsConstructor | ||
public enum AnthropicModelName { | ||
CLAUDE_3_5_SONNET_LATEST("claude-3-5-sonnet-latest"), | ||
CLAUDE_3_5_SONNET_20241022("claude-3-5-sonnet-20241022"), | ||
CLAUDE_3_5_HAIKU_LATEST("claude-3-5-haiku-latest"), | ||
CLAUDE_3_5_HAIKU_20241022("claude-3-5-haiku-20241022"), | ||
CLAUDE_3_5_SONNET_20240620("claude-3-5-sonnet-20240620"), | ||
CLAUDE_3_OPUS_LATEST("claude-3-opus-latest"), | ||
CLAUDE_3_OPUS_20240229("claude-3-opus-20240229"), | ||
CLAUDE_3_SONNET_20240229("claude-3-sonnet-20240229"), | ||
CLAUDE_3_HAIKU_20240307("claude-3-haiku-20240307"), | ||
; | ||
|
||
private final String value; | ||
|
||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
apps/opik-backend/src/main/java/com/comet/opik/domain/llmproviders/OpenaiModelName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.comet.opik.domain.llmproviders; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
/** | ||
* This information is taken from <a href="https://platform.openai.com/docs/models">openai docs</a> | ||
*/ | ||
@RequiredArgsConstructor | ||
public enum OpenaiModelName { | ||
CHATGPT_4O_LATEST("chatgpt-4o-latest"), | ||
GPT_4O("gpt-4o"), | ||
GPT_4O_2024_05_13("gpt-4o-2024-05-13"), | ||
GPT_4O_2024_08_06("gpt-4o-2024-08-06"), | ||
GPT_4O_2024_11_20("gpt-4o-2024-11-20"), | ||
GPT_4O_MINI("gpt-4o-mini"), | ||
GPT_4O_MINI_2024_07_18("gpt-4o-mini-2024-07-18"), | ||
GPT_3_5_TURBO("gpt-3.5-turbo"), | ||
GPT_3_5_TURBO_1106("gpt-3.5-turbo-1106"), | ||
GPT_3_5_TURBO_0125("gpt-3.5-turbo-0125"), | ||
GPT_4("gpt-4"), | ||
GPT_4_0613("gpt-4-0613"), | ||
GPT_4_0314("gpt-4-0314"), | ||
GPT_4_TURBO("gpt-4-turbo"), | ||
GPT_4_TURBO_2024_04_09("gpt-4-turbo-2024-04-09"), | ||
GPT_4_TURBO_PREVIEW("gpt-4-turbo-preview"), | ||
GPT_4_1106_PREVIEW("gpt-4-1106-preview"), | ||
GPT_4_0125_PREVIEW("gpt-4-0125-preview"), | ||
GPT_O1("o1"), | ||
GPT_O1_2024_12_17("o1-2024-12-17"), | ||
GPT_O1_MINI("o1-mini"), | ||
GPT_O1_MINI_2024_09_12("o1-mini-2024-09-12"), | ||
GPT_O1_PREVIEW("o1-preview"), | ||
GPT_O1_PREVIEW_2024_09_12("o1-preview-2024-09-12"), | ||
; | ||
|
||
private final String value; | ||
|
||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters