Interface Langchain4jOpenAiConfig


@ConfigRoot(phase=RUN_TIME) @ConfigMapping(prefix="quarkus.langchain4j.openai") public interface Langchain4jOpenAiConfig
  • Method Details

    • baseUrl

      @WithDefault("https://api.openai.com/v1/") String baseUrl()
      Base URL of OpenAI API
    • apiKey

      Optional<String> apiKey()
      OpenAI API key
    • timeout

      @WithDefault("10s") Duration timeout()
      Timeout for OpenAI calls
    • maxRetries

      @WithDefault("3") Integer maxRetries()
      The maximum number of times to retry
    • logRequests

      @WithDefault("false") Boolean logRequests()
      Whether the OpenAI client should log requests
    • logResponses

      @WithDefault("false") Boolean logResponses()
      Whether the OpenAI client should log responses
    • chatModel

      ChatModelConfig chatModel()
      Chat model related settings
    • embeddingModel

      EmbeddingModelConfig embeddingModel()
      Embedding model related settings
    • moderationModel

      ModerationModelConfig moderationModel()
      Moderation model related settings