Class CompatOAIPluginOptions

java.lang.Object
com.google.genkit.plugins.compatoai.CompatOAIPluginOptions

public class CompatOAIPluginOptions extends Object
Options for configuring OpenAI-compatible API plugins.
  • Method Details

    • builder

      public static CompatOAIPluginOptions.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
    • getApiKey

      public String getApiKey()
      Gets the API key.
      Returns:
      the API key
    • getBaseUrl

      public String getBaseUrl()
      Gets the base URL for API requests.
      Returns:
      the base URL
    • getOrganization

      public String getOrganization()
      Gets the organization ID.
      Returns:
      the organization ID
    • getTimeout

      public int getTimeout()
      Gets the request timeout in seconds.
      Returns:
      the timeout
    • getQueryParams

      public Map<String,String> getQueryParams()
      Gets the query parameters to append to API requests.
      Returns:
      the query parameters map, or null if none