java.lang.Object
com.bytedesk.ai.springai.providers.baidu.BaiduApi

public class BaiduApi extends Object
百度智能云API配置
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.ai.openai.api.OpenAiApi
    create(String baseUrl, String apiKey)
    创建适用于百度智能云的OpenAiApi实例
    static org.springframework.ai.openai.api.OpenAiApi
    create(String baseUrl, String apiKey, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
    创建百度智能云API实例,带更多自定义配置选项

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaiduApi

      private BaiduApi()
  • Method Details

    • create

      public static org.springframework.ai.openai.api.OpenAiApi create(String baseUrl, String apiKey)
      创建适用于百度智能云的OpenAiApi实例
      Parameters:
      baseUrl - 百度智能云API的基础URL
      apiKey - API密钥
      Returns:
      配置好的OpenAiApi实例
    • create

      public static org.springframework.ai.openai.api.OpenAiApi create(String baseUrl, String apiKey, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
      创建百度智能云API实例,带更多自定义配置选项