- 新增 BaiLianModelService 接口及其实现类 BaiLianModelServiceImpl- 添加与阿里云 DashScope API 交互的适配器 DashScopeAdapter - 新增百炼提供商 BaiLianProvider - 更新 ChatController 以支持流式聊天- 添加必要的配置类和属性文件
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
// buildSrc/build.gradle.kts
|
|
plugins {
|
|
// 核心:启用 Kotlin DSL 支持
|
|
`kotlin-dsl`
|
|
alias(libs.plugins.kotlin.jvm)
|
|
alias(libs.plugins.javaGradle.plugin)
|
|
}
|
|
dependencies {
|
|
// 导入 jib 插件依赖
|
|
implementation(libs.jib.gradlePlugin)
|
|
}
|
|
gradlePlugin {
|
|
plugins {
|
|
register("jib-plugin") {
|
|
id = "org.jcnc.llmhub.plugin.jib"
|
|
implementationClass = "org.jcnc.llmhub.plugin.jib.JibPlugin"
|
|
description =
|
|
"提供简单的配置构建镜像"
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
|
|
}
|
|
maven {
|
|
url = uri("https://raw.githubusercontent.com/eurotech/kura_addons/mvn-repo/")
|
|
}
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/public/")
|
|
}
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/spring/")
|
|
}
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/spring-plugin/")
|
|
}
|
|
maven {
|
|
url = uri("https://maven.aliyun.com/repository/gradle-plugin/")
|
|
}
|
|
mavenCentral()
|
|
google()
|
|
gradlePluginPortal()
|
|
} |