Allowed longer response from ChatGPT
This commit is contained in:
parent
d9e5016689
commit
8c13276556
3 changed files with 7 additions and 8 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue