Class AIModelStage
java.lang.Object
bg.codexio.ai.openai.api.sdk.chat.ChatConfigurationStage
bg.codexio.ai.openai.api.sdk.chat.AIModelStage
A stage to choose a model supported by
/v1/chat/completions model endpoint compatibility
.
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.chat.ChatConfigurationStage
executor, requestBuilder -
Method Summary
Modifier and TypeMethodDescriptionpoweredBy(bg.codexio.ai.openai.api.models.ModelType modelType) Configures the AI Model to beGPT35TurboModelConfigures the AI Model to beGPT40ModelConfigures the AI Model to beGPT401106Model
-
Method Details
-
poweredBy
- Parameters:
modelType-ModelTypeusually implemented by- GPT 3.5:
GPT35TurboModelGPT35Turbo1106ModelGPT35Turbo16kModel
- GPT 4
GPT40ModelGPT40VisionPreviewModelGPT4032kModelGPT401106Model
DallE30may result into an error, when the API responds.- GPT 3.5:
- Returns:
TemperatureStageto configure the temperature.
-
poweredByGPT35
Configures the AI Model to beGPT35TurboModel- Returns:
TemperatureStageto configure the temperature.
-
poweredByGPT40
Configures the AI Model to beGPT40Model- Returns:
TemperatureStageto configure the temperature.
-
turboPowered
Configures the AI Model to beGPT401106Model- Returns:
TemperatureStageto configure the temperature.
-