Class SpringAITencentConfig
java.lang.Object
com.bytedesk.ai.springai.providers.tencent.SpringAITencentConfig
@Configuration
@ConditionalOnProperty(name="spring.ai.tencent.chat.enabled",
havingValue="true",
matchIfMissing=false)
public class SpringAITencentConfig
extends Object
腾讯混元大模型配置
https://console.cloud.tencent.com/hunyuan/start#
https://cloud.tencent.com/document/product/1729/111007
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.ai.openai.api.OpenAiApi
(package private) org.springframework.ai.chat.client.ChatClient
(package private) org.springframework.ai.openai.OpenAiChatModel
(package private) org.springframework.ai.openai.OpenAiChatOptions
-
Field Details
-
baseUrl
@Value("${spring.ai.tencent.base-url:https://api.hunyuan.cloud.tencent.com}") private String baseUrl -
apiKey
-
model
-
temperature
-
-
Constructor Details
-
SpringAITencentConfig
public SpringAITencentConfig()
-
-
Method Details
-
tencentApi
@Bean("tencentApi") org.springframework.ai.openai.api.OpenAiApi tencentApi() -
tencentChatOptions
@Bean("tencentChatOptions") org.springframework.ai.openai.OpenAiChatOptions tencentChatOptions() -
tencentChatModel
@Bean("tencentChatModel") org.springframework.ai.openai.OpenAiChatModel tencentChatModel() -
tencentChatClient
@Bean("tencentChatClient") org.springframework.ai.chat.client.ChatClient tencentChatClient()
-