Skip to content

Commit

Permalink
1.2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 13, 2023
1 parent 63572de commit 00baa78
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ repositories {
}

val kotlin_version = "1.9.20"
val jetty_version = "11.0.15"
val jetty_version = "11.0.18"
val slf4j_version = "2.0.9"
val skyenet_version = "1.0.26"
val skyenet_version = "1.0.27"
dependencies {

implementation(group = "com.simiacryptus", name = "joe-penai", version = "1.0.27")
implementation(group = "com.simiacryptus", name = "joe-penai", version = "1.0.28")

implementation(group = "com.simiacryptus.skyenet", name = "core", version = skyenet_version)
implementation(group = "com.simiacryptus.skyenet", name = "webui", version = skyenet_version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open class ActionTestBase {
fun <T:Any>testScript_SelectionAction(selectionAction: SelectionAction<T>, scriptPath: String) {
AppSettingsState.instance.apiKey = OpenAIClient.keyTxt
AppSettingsState.instance.temperature = 0.0
AppSettingsState.instance.useGPT4 = false
AppSettingsState.instance.modelName = OpenAIClient.Models.GPT35Turbo.name
val input =
selectionAction.javaClass.getResourceAsStream(scriptPath)?.readAllBytes()?.toString(Charsets.UTF_8)
?: ""
Expand Down Expand Up @@ -59,12 +59,11 @@ open class ActionTestBase {

inline fun <reified T : Any> testScript_FileContextAction(
selectionAction: FileContextAction<T>,
scriptPath: String,
useGPT4: Boolean
scriptPath: String
) {
AppSettingsState.instance.apiKey = OpenAIClient.keyTxt
AppSettingsState.instance.temperature = 0.0
AppSettingsState.instance.useGPT4 = useGPT4
AppSettingsState.instance.modelName = OpenAIClient.Models.GPT35Turbo.name
val input =
selectionAction.javaClass.getResourceAsStream(scriptPath)?.readAllBytes()?.toString(Charsets.UTF_8)
?: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class GenerateProjectActionTest : ActionTestBase() {

@Test
fun testProcessing() {
testScript_FileContextAction(GenerateProjectAction(), "/GenerateProjectActionTest.md", false)
testScript_FileContextAction(GenerateProjectAction(), "/GenerateProjectActionTest.md")
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.junit.Test
class AnalogueFileActionTest : ActionTestBase() {
@Test
fun testProcessing() {
testScript_FileContextAction(AnalogueFileAction(), "/AnalogueFileActionTest.md", false)
testScript_FileContextAction(AnalogueFileAction(), "/AnalogueFileActionTest.md")
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import org.junit.Test
class CreateFileActionTest : ActionTestBase() {
@Test
fun testProcessing() {
testScript_FileContextAction(CreateFileAction(), "/CreateFileActionTest.md", false)
testScript_FileContextAction(CreateFileAction(), "/CreateFileActionTest.md")
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.github.simiacryptus.aicoder.actions.generic

import com.github.simiacryptus.aicoder.actions.ActionTestBase
import com.github.simiacryptus.aicoder.actions.generic.GenerateStoryAction
import org.junit.Test

class GenerateStoryActionTest : ActionTestBase() {

@Test
fun testProcessing() {
testScript_FileContextAction(GenerateStoryAction(), "/GenerateStoryActionTest.md", false)
testScript_FileContextAction(GenerateStoryAction(), "/GenerateStoryActionTest.md")
}


Expand Down

0 comments on commit 00baa78

Please sign in to comment.