Class OpenAIPluginOptions

java.lang.Object
com.google.genkit.plugins.openai.OpenAIPluginOptions

public class OpenAIPluginOptions extends Object
Options for configuring the OpenAI plugin.
  • Method Details

    • builder

      public static OpenAIPluginOptions.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