springai的阿里云配置
摘要:该配置展示了Spring AI集成阿里云DashScope服务的参数设置,包括:基础URL(dashscope.aliyuncs.com)、API密钥(sk-xxxxxxxxx)、模型选择(qwen-plus)以及聊天补全接口路径(/v1/chat/completions)。这些参数实现了对阿里云通义千问大模型API的调用配置,适用于基于Spring框架的AI应用开发。
·
spring.ai.openai.base-url=https://dashscope.aliyuncs.com/compatible-mode
spring.ai.openai.api-key=sk-xxxxxxxxx
spring.ai.openai.chat.options.model=qwen-plus
spring.ai.openai.chat.completions-path=/v1/chat/completions
更多推荐

所有评论(0)