We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb583b commit 4c4910bCopy full SHA for 4c4910b
src/main/kotlin/cc/unitmesh/devti/llms/tokenizer/TokenizerImpl.kt
@@ -9,7 +9,8 @@ import com.knuddels.jtokkit.api.EncodingType
9
import com.knuddels.jtokkit.api.IntArrayList
10
11
@Service(Service.Level.APP)
12
-class TokenizerImpl(private val maxTokenLength: Int = 8192) : Tokenizer {
+class TokenizerImpl : Tokenizer {
13
+ private val maxTokenLength: Int = 16384
14
private var registry: EncodingRegistry? = Encodings.newDefaultEncodingRegistry()
15
private var encoding: Encoding = registry?.getEncoding(EncodingType.CL100K_BASE)!!
16
0 commit comments