From 822c1399e195f6ea50dcbf5b08d084fd3b3a4692 Mon Sep 17 00:00:00 2001 From: ire <931903008@qq.com> Date: Wed, 18 Dec 2024 14:12:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ellm=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=9F=A5=E8=AF=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-module-llm/pom.xml | 22 +++++++ yudao-module-llm/yudao-module-llm-api/pom.xml | 30 +++++++++ yudao-module-llm/yudao-module-llm-biz/pom.xml | 61 +++++++++++++++++++ .../web/config/LlmWebConfiguration.java | 21 +++++++ 4 files changed, 134 insertions(+) create mode 100644 yudao-module-llm/pom.xml create mode 100644 yudao-module-llm/yudao-module-llm-api/pom.xml create mode 100644 yudao-module-llm/yudao-module-llm-biz/pom.xml create mode 100644 yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/framework/web/config/LlmWebConfiguration.java diff --git a/yudao-module-llm/pom.xml b/yudao-module-llm/pom.xml new file mode 100644 index 000000000..913ec9cff --- /dev/null +++ b/yudao-module-llm/pom.xml @@ -0,0 +1,22 @@ + + + 4.0.0 + + cn.iocoder.boot + yudao + ${revision} + + + yudao-module-llm + pom + + ${project.artifactId} + http://maven.apache.org + + yudao-module-llm-api + yudao-module-llm-biz + + + diff --git a/yudao-module-llm/yudao-module-llm-api/pom.xml b/yudao-module-llm/yudao-module-llm-api/pom.xml new file mode 100644 index 000000000..9057d875a --- /dev/null +++ b/yudao-module-llm/yudao-module-llm-api/pom.xml @@ -0,0 +1,30 @@ + + + + cn.iocoder.boot + yudao-module-llm + ${revision} + + 4.0.0 + yudao-module-llm-api + jar + + + UTF-8 + + + ${project.artifactId} + + llm-api + + + + + cn.iocoder.boot + yudao-common + + + + diff --git a/yudao-module-llm/yudao-module-llm-biz/pom.xml b/yudao-module-llm/yudao-module-llm-biz/pom.xml new file mode 100644 index 000000000..fa7b9a7c8 --- /dev/null +++ b/yudao-module-llm/yudao-module-llm-biz/pom.xml @@ -0,0 +1,61 @@ + + + + cn.iocoder.boot + yudao-module-llm + ${revision} + + 4.0.0 + yudao-module-llm-biz + jar + + ${project.artifactId} + http://maven.apache.org + + + UTF-8 + + + + + + cn.iocoder.boot + yudao-module-llm-api + ${revision} + + + + + cn.iocoder.boot + yudao-spring-boot-starter-web + + + + cn.iocoder.boot + yudao-spring-boot-starter-security + + + cn.iocoder.boot + yudao-spring-boot-starter-excel + + + + + cn.iocoder.boot + yudao-spring-boot-starter-mybatis + + + + cn.iocoder.boot + yudao-spring-boot-starter-redis + + + cn.iocoder.boot + yudao-spring-boot-starter-mybatis + + + + + diff --git a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/framework/web/config/LlmWebConfiguration.java b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/framework/web/config/LlmWebConfiguration.java new file mode 100644 index 000000000..7b98841bf --- /dev/null +++ b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/framework/web/config/LlmWebConfiguration.java @@ -0,0 +1,21 @@ +package cn.iocoder.yudao.module.llm.framework.web.config; + +import cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration; +import org.springdoc.core.GroupedOpenApi; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * llm 模块的 web 组件的 Configuration + */ +@Configuration(proxyBeanMethods = false) +public class LlmWebConfiguration { + + /** + * llm 模块的 API 分组 + */ + @Bean + public GroupedOpenApi llmGroupedOpenApi() { + return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("llm"); + } +}