Class OpenAIModelParameters
java.lang.Object
org.apache.beam.sdk.ml.inference.openai.OpenAIModelParameters
- All Implemented Interfaces:
Serializable,BaseModelParameters
Configuration parameters required for OpenAI model inference.
This class encapsulates all configuration needed to initialize and communicate with OpenAI's API, including authentication credentials, model selection, and inference instructions.
Example Usage
OpenAIModelParameters params = OpenAIModelParameters.builder()
.apiKey("sk-...")
.modelName("gpt-4")
.instructionPrompt("Translate the following text to French:")
.build();
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
getApiKey
-
getModelName
-
getInstructionPrompt
-
builder
-