From 13115cb6738d42023df4c46de7e7c0b0d018d2d6 Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Thu, 26 Oct 2023 19:25:52 -0400 Subject: [PATCH] 1.0.19 (#23) --- README.md | 6 +++--- gradle.properties | 2 +- .../com/simiacryptus/skyenet/body/BasicChatSession.kt | 2 +- .../kotlin/com/simiacryptus/skyenet/body/ChatSession.kt | 8 ++++---- .../com/simiacryptus/skyenet/body/ChatSessionFlexmark.kt | 2 +- .../com/simiacryptus/skyenet/body/InterviewSession.kt | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index cda6bdaa..bb31a703 100644 --- a/README.md +++ b/README.md @@ -76,18 +76,18 @@ Maven: com.simiacryptus skyenet-webui - 1.0.18 + 1.0.19 ``` Gradle: ```groovy -implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.18' +implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.19' ``` ```kotlin -implementation("com.simiacryptus:skyenet:1.0.18") +implementation("com.simiacryptus:skyenet:1.0.19") ``` ### 🌟 To Use diff --git a/gradle.properties b/gradle.properties index 10a05366..0a13cc83 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ # Gradle Releases -> https://github.com/gradle/gradle/releases libraryGroup = com.simiacryptus.skyenet -libraryVersion = 1.0.18 +libraryVersion = 1.0.19 gradleVersion = 7.6.1 # Opt-out flag for bundling Kotlin standard library -> https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library diff --git a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/BasicChatSession.kt b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/BasicChatSession.kt index e0ae256c..e890039d 100644 --- a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/BasicChatSession.kt +++ b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/BasicChatSession.kt @@ -24,4 +24,4 @@ open class BasicChatSession( |Ask questions to keep the conversation going. |Say goodbye when the conversation is over. """.trimMargin(), -) : ChatSession(parent, model, sessionId, visiblePrompt, hiddenPrompt, systemPrompt) \ No newline at end of file +) : ChatSession(parent, sessionId, model, visiblePrompt, hiddenPrompt, systemPrompt) \ No newline at end of file diff --git a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSession.kt b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSession.kt index cb84af54..7d3ae788 100644 --- a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSession.kt +++ b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSession.kt @@ -4,11 +4,11 @@ import com.simiacryptus.openai.OpenAIClient abstract class ChatSession( val parent: SkyenetSessionServerBase, - val model: OpenAIClient.Model = OpenAIClient.Models.GPT35Turbo, sessionId: String, - val visiblePrompt: String, - val hiddenPrompt: String, - val systemPrompt: String, + var model: OpenAIClient.Model = OpenAIClient.Models.GPT35Turbo, + var visiblePrompt: String, + var hiddenPrompt: String, + var systemPrompt: String, ) : PersistentSessionBase(sessionId, parent.sessionDataStorage) { init { diff --git a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSessionFlexmark.kt b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSessionFlexmark.kt index 736b099d..8ef854ea 100644 --- a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSessionFlexmark.kt +++ b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/ChatSessionFlexmark.kt @@ -15,8 +15,8 @@ open class ChatSessionFlexmark( systemPrompt: String, ) : ChatSession( parent, - model, sessionId, + model, visiblePrompt, hiddenPrompt, systemPrompt diff --git a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/InterviewSession.kt b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/InterviewSession.kt index 6f356cb2..2f87d071 100644 --- a/webui/src/main/kotlin/com/simiacryptus/skyenet/body/InterviewSession.kt +++ b/webui/src/main/kotlin/com/simiacryptus/skyenet/body/InterviewSession.kt @@ -45,7 +45,7 @@ open class InterviewSession( |Ask for clarification when needed. |At the end of each assistant chat message, print the currently-accumulated JSON of the data using ```json``` blocks. """.trimMargin(), -) : ChatSession(parent, model, sessionId, visiblePrompt, hiddenPrompt, systemPrompt) { +) : ChatSession(parent, sessionId, model, visiblePrompt, hiddenPrompt, systemPrompt) { open fun onFinished(data: T) {} open fun onUpdate(data: T) {}