|
|
|
@ -28,6 +28,18 @@
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- 引入ollama的依赖.版本号来自于 dependencyManagement中 spring-ai-bom中的版本号.-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.springboot.ai</groupId>
|
|
|
|
|
<artifactId>spring-ai-ollama-spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--将http客户端引入httpclient,以提供给spring-ai使用,因为minio引入了okhttp,如果不引入httpclient,会导致自动使用okhttp(okhttp超时时间短,会导致大模型来不及回答消息)-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
|
|
|
<artifactId>httpclient5</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
|
|
|