Class GenericOaiClientConfig

java.lang.Object
de.xima.fc.prompt.ms.impl.service.generic_oai.client.GenericOaiClientConfig

public final class GenericOaiClientConfig extends Object
Represents the configuration needed by the client to interact with Generic OAI services.
Since:
8.5.0
  • Method Details

    • apiKey

      public String apiKey()
      Gets the API key for authenticating with the Generic OAI API.
      Returns:
      The API key.
    • apiUrl

      public String apiUrl()
      Gets the URL to the Generic OAI API.
      Returns:
      The API URL.
    • connectTimeout

      public Duration connectTimeout()
      Gets the connection timeout duration for connections to the Generic OAI API.
      Returns:
      The connection timeout duration.
    • fileStorage

      public GenericOaiFileStorage fileStorage()
      Gets the file storage to use for managing files sent to the prompt service and returned by it.
      Returns:
      The file storage.
    • readTimeout

      public Duration readTimeout()
      Gets the read timeout duration for connections to the Generic OAI API.
      Returns:
      The read timeout duration.
    • sslContextSupplier

      public Supplier<SSLContext> sslContextSupplier()
      Gets the SSL context supplier for the connection to the Generic OAI API.
      Returns:
      The SSL context supplier.
    • builder

      public static GenericOaiClientConfig.Builder builder()
      Creates a new builder for GenericOaiClientConfig.
      Returns:
      A new builder.