Class VolcengineApi

java.lang.Object
com.bytedesk.ai.springai.providers.volcengine.VolcengineApi

public class VolcengineApi extends Object
火山引擎API工具类,用于创建适合火山引擎的OpenAiApi实例
  • 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)
    创建火山引擎API实例
    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

    • VolcengineApi

      private VolcengineApi()
  • Method Details

    • create

      public static org.springframework.ai.openai.api.OpenAiApi create(String baseUrl, String apiKey)
      创建火山引擎API实例
      Parameters:
      baseUrl - 基础URL,例如:https://ark.cn-beijing.volces.com/api/v3
      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实例,带更多自定义配置选项