Class SpringAIZhipuaiConfig

java.lang.Object
com.bytedesk.ai.springai.zhipuai.SpringAIZhipuaiConfig

@Configuration @ConditionalOnProperty(name="spring.ai.zhipuai.chat.enabled", havingValue="true") public class SpringAIZhipuaiConfig extends Object
https://open.bigmodel.cn/dev/api#sdk_install https://github.com/MetaGLM/zhipuai-sdk-java-v4 https://docs.spring.io/spring-ai/reference/api/chat/zhipuai-chat.html https://docs.spring.io/spring-ai/reference/api/embeddings/zhipuai-embeddings.html
  • Field Details

    • zhipuaiApiKey

      @Value("${spring.ai.zhipuai.api-key:}") String zhipuaiApiKey
    • zhipuaiApiModel

      @Value("${spring.ai.zhipuai.chat.options.model:glm-4-flash}") String zhipuaiApiModel
    • zhipuaiApiTemperature

      @Value("${spring.ai.zhipuai.chat.options.temperature:0.7}") double zhipuaiApiTemperature
    • zhipuaiEmbeddingModel

      @Value("${spring.ai.zhipuai.embedding.options.model:embedding-2}") String zhipuaiEmbeddingModel
    • jedisProperties

      @Autowired private JedisProperties jedisProperties
  • Constructor Details

    • SpringAIZhipuaiConfig

      public SpringAIZhipuaiConfig()
  • Method Details

    • bytedeskZhipuaiApi

      @Bean("bytedeskZhipuaiApi") org.springframework.ai.zhipuai.api.ZhiPuAiApi bytedeskZhipuaiApi()
    • bytedeskZhipuaiChatOptions

      @Bean("bytedeskZhipuaiChatOptions") org.springframework.ai.zhipuai.ZhiPuAiChatOptions bytedeskZhipuaiChatOptions()
    • bytedeskZhipuaiEmbeddingOptions

      @Bean("bytedeskZhipuaiEmbeddingOptions") org.springframework.ai.zhipuai.ZhiPuAiEmbeddingOptions bytedeskZhipuaiEmbeddingOptions()
    • bytedeskZhipuaiChatModel

      @Bean("bytedeskZhipuaiChatModel") org.springframework.ai.zhipuai.ZhiPuAiChatModel bytedeskZhipuaiChatModel()
    • bytedeskZhipuaiEmbeddingModel

      @Bean("bytedeskZhipuaiEmbeddingModel") org.springframework.ai.zhipuai.ZhiPuAiEmbeddingModel bytedeskZhipuaiEmbeddingModel()
    • bytedeskZhipuaiChatClientBuilder

      @Bean("bytedeskZhipuaiChatClientBuilder") org.springframework.ai.chat.client.ChatClient.Builder bytedeskZhipuaiChatClientBuilder()
    • bytedeskZhipuaiChatClient

      @Bean("bytedeskZhipuaiChatClient") org.springframework.ai.chat.client.ChatClient bytedeskZhipuaiChatClient()
    • bytedeskZhipuaiImageApi

      @Bean("bytedeskZhipuaiImageApi") org.springframework.ai.zhipuai.api.ZhiPuAiImageApi bytedeskZhipuaiImageApi()
    • bytedeskZhipuaiImageModel

      @Bean("bytedeskZhipuaiImageModel") org.springframework.ai.zhipuai.ZhiPuAiImageModel bytedeskZhipuaiImageModel()
    • bytedeskZhipuaiClient

      @Bean("bytedeskZhipuaiClient") @ConditionalOnProperty(name="spring.ai.zhipuai.chat.enabled", havingValue="true") com.zhipu.oapi.ClientV4 bytedeskZhipuaiClient()
    • bytedeskZhipuaiRedisVectorStore

      @Bean("bytedeskZhipuaiRedisVectorStore") @ConditionalOnProperty(name={"spring.ai.zhipuai.embedding.enabled","spring.ai.vectorstore.redis.initialize-schema"}, havingValue="true") public org.springframework.ai.vectorstore.redis.RedisVectorStore bytedeskZhipuaiRedisVectorStore(org.springframework.ai.embedding.EmbeddingModel bytedeskZhipuaiEmbeddingModel, org.springframework.ai.autoconfigure.vectorstore.redis.RedisVectorStoreProperties properties)