Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package/ios/Sources/HybridLLM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class HybridLLM: HybridLLMSpec {
private var tools: [ToolDefinition] = []
private var toolSchemas: [ToolSpec] = []
private var generationParameters: GenerateParameters = GenerateParameters()
private var tokenBatchSize: Int = 1
private var tokenBatchSize: Int = 4
private var contextConfig: LLMContextConfig?

var isLoaded: Bool { container != nil }
Expand Down Expand Up @@ -432,7 +432,7 @@ class HybridLLM: HybridLLMSpec {
messageHistory = []
manageHistory = false
generationParameters = GenerateParameters()
tokenBatchSize = 1
tokenBatchSize = 4
contextConfig = nil
self.modelId = ""
Memory.clearCache()
Expand Down Expand Up @@ -472,7 +472,7 @@ class HybridLLM: HybridLLMSpec {
}

generationParameters = buildGenerateParameters(from: options?.generationConfig)
tokenBatchSize = normalizedInt(options?.tokenBatchSize, minimum: 1) ?? 1
tokenBatchSize = normalizedInt(options?.tokenBatchSize, minimum: 1) ?? 4
contextConfig = options?.contextConfig

self.container = loadedContainer
Expand Down Expand Up @@ -1162,7 +1162,7 @@ class HybridLLM: HybridLLMSpec {
messageHistory = []
manageHistory = false
generationParameters = GenerateParameters()
tokenBatchSize = 1
tokenBatchSize = 4
contextConfig = nil
modelId = ""

Expand Down
Loading