From 33fb0d8163dff7350d4be46c52e7b2de67210005 Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Tue, 7 Nov 2023 22:24:52 -0500 Subject: [PATCH] 1.2.18 --- build.gradle.kts | 4 ++-- .../aicoder/actions/generic/AnalogueFileAction.groovy | 1 - .../aicoder/actions/generic/CreateFileAction.groovy | 1 - .../github/simiacryptus/aicoder/actions/dev/CodeChatServer.kt | 1 - .../github/simiacryptus/aicoder/config/AppSettingsState.kt | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3e201d24..969cae01 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,10 +25,10 @@ repositories { val kotlin_version = "1.7.22" val jetty_version = "11.0.15" val slf4j_version = "2.0.9" -val skyenet_version = "1.0.20" +val skyenet_version = "1.0.21" dependencies { - implementation(group = "com.simiacryptus", name = "joe-penai", version = "1.0.23") + implementation(group = "com.simiacryptus", name = "joe-penai", version = "1.0.24") implementation(group = "com.simiacryptus.skyenet", name = "util", version = skyenet_version) implementation(group = "com.simiacryptus.skyenet", name = "core", version = skyenet_version) diff --git a/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/AnalogueFileAction.groovy b/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/AnalogueFileAction.groovy index 018d714e..ded1b1c6 100644 --- a/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/AnalogueFileAction.groovy +++ b/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/AnalogueFileAction.groovy @@ -82,7 +82,6 @@ class AnalogueFileAction extends FileContextAction def chatRequest = new ChatRequest() def model = AppSettingsState.instance.defaultChatModel() chatRequest.model = model.modelName - chatRequest.max_tokens = model.maxTokens chatRequest.temperature = AppSettingsState.instance.temperature chatRequest.messages = [ new ChatMessage( diff --git a/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/CreateFileAction.groovy b/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/CreateFileAction.groovy index 29a259b7..0f7d37ba 100644 --- a/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/CreateFileAction.groovy +++ b/src/main/groovy/com/github/simiacryptus/aicoder/actions/generic/CreateFileAction.groovy @@ -84,7 +84,6 @@ class CreateFileAction extends FileContextAction { def chatRequest = new ChatRequest() def model = AppSettingsState.instance.defaultChatModel() chatRequest.model = model.modelName - chatRequest.max_tokens = model.maxTokens chatRequest.temperature = AppSettingsState.instance.temperature chatRequest.messages = [ //language=TEXT diff --git a/src/main/kotlin/com/github/simiacryptus/aicoder/actions/dev/CodeChatServer.kt b/src/main/kotlin/com/github/simiacryptus/aicoder/actions/dev/CodeChatServer.kt index 0efd1f2d..52d31dd6 100644 --- a/src/main/kotlin/com/github/simiacryptus/aicoder/actions/dev/CodeChatServer.kt +++ b/src/main/kotlin/com/github/simiacryptus/aicoder/actions/dev/CodeChatServer.kt @@ -68,7 +68,6 @@ rootMessageTrail = val chatRequest = OpenAIClient.ChatRequest() val model = AppSettingsState.instance.defaultChatModel() chatRequest.model = model.modelName - chatRequest.max_tokens = model.maxTokens chatRequest.temperature = AppSettingsState.instance.temperature chatRequest.messages = messages.toTypedArray() return chatRequest diff --git a/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt b/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt index c7429e9b..c4e270b7 100644 --- a/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt +++ b/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt @@ -45,7 +45,6 @@ class AppSettingsState : PersistentStateComponent { val chatRequest = ChatRequest() chatRequest.model = model.modelName chatRequest.temperature = temperature - chatRequest.max_tokens = model.maxTokens return chatRequest }