Class OpenAiProperties

java.lang.Object
org.springframework.ai.autoconfigure.openai.OpenAiProperties

@ConfigurationProperties("spring.ai.openai") public class OpenAiProperties extends Object
  • Field Details

  • Constructor Details

    • OpenAiProperties

      public OpenAiProperties()
  • Method Details

    • getApiKey

      public String getApiKey()
    • setApiKey

      public void setApiKey(String apiKey)
    • getModel

      public String getModel()
    • setModel

      public void setModel(String model)
    • getTemperature

      public Double getTemperature()
    • setTemperature

      public void setTemperature(Double temperature)
    • getDuration

      public Duration getDuration()
    • setDuration

      public void setDuration(Duration duration)
    • getBaseUrl

      public String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
    • getEmbeddingModel

      public String getEmbeddingModel()
    • setEmbeddingModel

      public void setEmbeddingModel(String embeddingModel)
    • setEmbeddingBaseUrl

      public void setEmbeddingBaseUrl(String embeddingBaseUrl)
    • getEmbeddingBaseUrl

      public String getEmbeddingBaseUrl()
    • getEmbeddingApiKey

      public String getEmbeddingApiKey()
    • setEmbeddingApiKey

      public void setEmbeddingApiKey(String embeddingApiKey)