Package com.bytedesk.ai.springai.zhipuai
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 Summary
FieldsModifier and TypeFieldDescriptionprivate JedisProperties
(package private) String
(package private) String
(package private) double
(package private) String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.ai.zhipuai.api.ZhiPuAiApi
(package private) org.springframework.ai.chat.client.ChatClient
(package private) org.springframework.ai.chat.client.ChatClient.Builder
(package private) org.springframework.ai.zhipuai.ZhiPuAiChatModel
(package private) org.springframework.ai.zhipuai.ZhiPuAiChatOptions
(package private) com.zhipu.oapi.ClientV4
(package private) org.springframework.ai.zhipuai.ZhiPuAiEmbeddingModel
(package private) org.springframework.ai.zhipuai.ZhiPuAiEmbeddingOptions
(package private) org.springframework.ai.zhipuai.api.ZhiPuAiImageApi
(package private) org.springframework.ai.zhipuai.ZhiPuAiImageModel
org.springframework.ai.vectorstore.redis.RedisVectorStore
bytedeskZhipuaiRedisVectorStore
(org.springframework.ai.embedding.EmbeddingModel bytedeskZhipuaiEmbeddingModel, org.springframework.ai.autoconfigure.vectorstore.redis.RedisVectorStoreProperties properties)
-
Field Details
-
zhipuaiApiKey
-
zhipuaiApiModel
-
zhipuaiApiTemperature
@Value("${spring.ai.zhipuai.chat.options.temperature:0.7}") double zhipuaiApiTemperature -
zhipuaiEmbeddingModel
-
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)
-