Package com.google.genkit.plugins.openai
Class OpenAIPluginOptions
java.lang.Object
com.google.genkit.plugins.openai.OpenAIPluginOptions
Options for configuring the OpenAI plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for OpenAIPluginOptions. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAIPluginOptions.Builderbuilder()Creates a new builder.Gets the API key.Gets the base URL for API requests.Gets the organization ID.intGets the request timeout in seconds.
-
Method Details
-
builder
Creates a new builder.- Returns:
- a new builder
-
getApiKey
Gets the API key.- Returns:
- the API key
-
getBaseUrl
Gets the base URL for API requests.- Returns:
- the base URL
-
getOrganization
Gets the organization ID.- Returns:
- the organization ID
-
getTimeout
public int getTimeout()Gets the request timeout in seconds.- Returns:
- the timeout
-