Add message history context

This commit is contained in:
2025-02-28 23:16:07 +08:00
parent be182215b9
commit de17af77f2
4 changed files with 170 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
plugins {
val kotlinVersion = "1.8.10"
val kotlinVersion = "2.0.20"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
@@ -7,21 +7,29 @@ plugins {
}
group = "top.jie65535.mirai"
version = "1.3.0"
version = "1.4.0"
mirai {
jvmTarget = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
maven("https://maven.aliyun.com/repository/public")
}
val openaiClientVersion = "3.8.2"
val ktorVersion = "2.3.12"
val openaiClientVersion = "4.0.1"
val ktorVersion = "3.0.3"
val jLatexMathVersion = "1.0.7"
val commonTextVersion = "1.13.0"
val hibernateVersion = "2.9.0"
dependencies {
implementation("com.aallam.openai:openai-client:$openaiClientVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation("org.scilab.forge:jlatexmath:$jLatexMathVersion")
implementation("org.apache.commons:commons-text:$commonTextVersion")
// 聊天记录插件
compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:$hibernateVersion")
}