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

Commit

Permalink
Update OpenAIService.kt (#12)
Browse files Browse the repository at this point in the history
bump model
increase maxRokens
  • Loading branch information
itai590 authored Jun 8, 2024
1 parent b8e4e97 commit f5ed130
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.knuddels.jtokkit.api.EncodingType
class OpenAIService {

companion object {
const val model = "gpt-3.5-turbo"
const val model = "gpt-4o"
val instance: OpenAIService
get() = ApplicationManager.getApplication().getService(OpenAIService::class.java)
}
Expand Down Expand Up @@ -49,7 +49,7 @@ class OpenAIService {
topP = 1.0,
frequencyPenalty = 0.0,
presencePenalty = 0.0,
maxTokens = 200,
maxTokens = 2048,
n = completions
)

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

0 comments on commit f5ed130

Please sign in to comment.