Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit f5ed130

Browse files
authored
Update OpenAIService.kt (#12)
bump model increase maxRokens
1 parent b8e4e97 commit f5ed130

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/OpenAIService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import com.knuddels.jtokkit.api.EncodingType
1717
class OpenAIService {
1818

1919
companion object {
20-
const val model = "gpt-3.5-turbo"
20+
const val model = "gpt-4o"
2121
val instance: OpenAIService
2222
get() = ApplicationManager.getApplication().getService(OpenAIService::class.java)
2323
}
@@ -49,7 +49,7 @@ class OpenAIService {
4949
topP = 1.0,
5050
frequencyPenalty = 0.0,
5151
presencePenalty = 0.0,
52-
maxTokens = 200,
52+
maxTokens = 2048,
5353
n = completions
5454
)
5555

@@ -66,4 +66,4 @@ class OpenAIService {
6666
val encoding = registry.getEncoding(EncodingType.CL100K_BASE)
6767
return encoding.countTokens(prompt) > 4000
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)