threadpool: fix swift wrapper errors due to n_threads int type cleanup

This commit is contained in:
Max Krasnyansky 2024-08-24 15:07:54 -07:00 committed by fmz
parent 40648601f1
commit f64c975168

View file

@ -71,8 +71,8 @@ actor LlamaContext {
var ctx_params = llama_context_default_params()
ctx_params.seed = 1234
ctx_params.n_ctx = 2048
ctx_params.n_threads = UInt32(n_threads)
ctx_params.n_threads_batch = UInt32(n_threads)
ctx_params.n_threads = Int32(n_threads)
ctx_params.n_threads_batch = Int32(n_threads)
let context = llama_new_context_with_model(model, ctx_params)
guard let context else {