From 8c1327655661967752286238eb1389c367b8c3c0 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 5 Jan 2023 17:07:01 -0800 Subject: [PATCH] Allowed longer response from ChatGPT --- build.gradle | 2 +- .../kotlin/net/thauvin/erik/mobibot/modules/ChatGpt.kt | 7 +++---- version.properties | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index d05bf6e..178326f 100644 --- a/build.gradle +++ b/build.gradle @@ -82,7 +82,7 @@ dependencies { implementation 'net.thauvin.erik:cryptoprice:1.0.0' implementation 'net.thauvin.erik:jokeapi:0.9-SNAPSHOT' implementation 'net.thauvin.erik:pinboard-poster:1.0.3' - implementation 'net.thauvin.erik:urlencoder:1.0.0' + implementation 'net.thauvin.erik:urlencoder:1.0.1' testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.25' // testImplementation 'org.mockito.kotlin:mockito-kotlin:4.0.0' diff --git a/src/main/kotlin/net/thauvin/erik/mobibot/modules/ChatGpt.kt b/src/main/kotlin/net/thauvin/erik/mobibot/modules/ChatGpt.kt index 8e8423a..3a03d03 100644 --- a/src/main/kotlin/net/thauvin/erik/mobibot/modules/ChatGpt.kt +++ b/src/main/kotlin/net/thauvin/erik/mobibot/modules/ChatGpt.kt @@ -98,11 +98,10 @@ class ChatGpt : AbstractModule() { "model": "text-davinci-003", "prompt": $prompt, "temperature": 0, - "max_tokens": 100, + "max_tokens": 1024, "top_p": 1, "frequency_penalty": 0, - "presence_penalty": 0, - "stop": ["\n"] + "presence_penalty": 0 }""".trimIndent() ) ) @@ -127,7 +126,7 @@ class ChatGpt : AbstractModule() { } catch (e: IOException) { throw ModuleException( "chatgpt($query): IO", - "An IO error has occurred while conversing with GhatGPT.", + "An IO error has occurred while conversing with ChatGPT.", e ) } diff --git a/version.properties b/version.properties index 593b23f..c234d1f 100644 --- a/version.properties +++ b/version.properties @@ -1,9 +1,9 @@ #Generated by the Semver Plugin for Gradle -#Wed Jan 04 02:59:39 PST 2023 -version.buildmeta=939 +#Thu Jan 05 16:20:43 PST 2023 +version.buildmeta=948 version.major=0 version.minor=8 version.patch=0 version.prerelease=rc version.project=mobibot -version.semver=0.8.0-rc+939 +version.semver=0.8.0-rc+948