跳到主要内容
版本:v1.6.x

AI 快速入门

通过配置application.yml文件里面的aiConfig实现与人工智能的对话

配置参数说明

参数名称参数帮助描述
type选择AI大模型(如智普、通义千问...)
model选择模型,默认为GLM-4
api-key获取api_key,如果没有该配置,无法与大模型进行对话

大模型选项与配置详解

智普AI

参数名称示例链接
typezhiPu(必须和示例完全相同)
modelglm-4-0520、glm-4 、glm-4-air、glm-4-airx、 glm-4-flash
api-keyxxxxx.xxxxxxhttps://open.bigmodel.cn/login?redirect=%2Fusercenter%2Fapikeys

阿里巴巴AI

参数名称示例链接
typealibabaAi(必须和示例完全相同)
modelqwen-turbo、qwen-plus、qwen-max、qwen-max-0428、qwen-max-0403、qwen-max-0107、qwen-max-longcontexthttps://help.aliyun.com/zh/dashscope/developer-reference/model-introduction?spm=a2c4g.11186623.0.0.4e0246c1RQFKMH
api-keyxxxxxxxxxxxhttps://help.aliyun.com/zh/dashscope/developer-reference/activate-dashscope-and-create-an-api-key?spm=a2c4g.11186623.0.i10