Class CompatOAIPluginOptions.Builder
java.lang.Object
com.google.genkit.plugins.compatoai.CompatOAIPluginOptions.Builder
- Enclosing class:
CompatOAIPluginOptions
Builder for CompatOAIPluginOptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API key.Sets the base URL for API requests.build()Builds the options.organization(String organization) Sets the organization ID.queryParams(Map<String, String> queryParams) Sets query parameters to append to API requests.timeout(int timeout) Sets the request timeout in seconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Sets the API key.- Parameters:
apiKey- the API key- Returns:
- this builder
-
baseUrl
Sets the base URL for API requests.- Parameters:
baseUrl- the base URL- Returns:
- this builder
-
organization
Sets the organization ID.- Parameters:
organization- the organization ID- Returns:
- this builder
-
timeout
Sets the request timeout in seconds.- Parameters:
timeout- the timeout- Returns:
- this builder
-
queryParams
Sets query parameters to append to API requests.- Parameters:
queryParams- the query parameters map- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-