Class CompatOAIPluginOptions
java.lang.Object
com.google.genkit.plugins.compatoai.CompatOAIPluginOptions
Options for configuring OpenAI-compatible API plugins.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for CompatOAIPluginOptions. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.Gets the API key.Gets the base URL for API requests.Gets the organization ID.Gets the query parameters to append to API requests.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
-
getQueryParams
Gets the query parameters to append to API requests.- Returns:
- the query parameters map, or null if none
-