-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
092e5b0
commit 3788acc
Showing
3 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
src/main/java/io/github/stefanbratanov/jvm/openai/CompletionModel.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,32 @@ | ||
package io.github.stefanbratanov.jvm.openai; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Represents the latest models that can be used to generate completions. | ||
* | ||
* <p>Note that this does not correspond to a static version and may change over time. | ||
* | ||
* @see <a href="https://platform.openai.com/docs/models/continuous-model-upgrades">Continuous model | ||
* upgrades - OpenAI API</a> | ||
*/ | ||
public enum CompletionModel { | ||
|
||
GPT_4("gpt-4"), | ||
GPT_4_TURBO_PREVIEW("gpt-4-turbo-preview"), | ||
GPT_4_VISION_PREVIEW("gpt-4-vision-preview"), | ||
GPT_4_32K("gpt-4-32k"), | ||
GPT_3_5_TURBO("gpt-3.5-turbo"), | ||
GPT_3_5_TURBO_16K("gpt-3.5-turbo-16k"); | ||
|
||
private final String id; | ||
|
||
CompletionModel(String modelId) { | ||
this.id = modelId; | ||
} | ||
|
||
@JsonValue | ||
public String getId() { | ||
return this.id; | ||
} | ||
} |
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