Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
size_t
Michael Yang0142660bd4ef
diff --git a/llama/llama.go b/llama/llama.goindex c12209723..95f6d3115 100644--- a/llama/llama.go+++ b/llama/llama.go@@ -264,8 +264,8 @@ func (llm *llama) sample(output deque[C.llama_token], opts *C.struct_llama_sampltoken := C.llama_sample(llm.ctx,- unsafe.SliceData(candidates.Data()), C.ulong(candidates.Len()),- unsafe.SliceData(output.Data()), C.ulong(output.Len()),+ unsafe.SliceData(candidates.Data()), C.size_t(candidates.Len()),+ unsafe.SliceData(output.Data()), C.size_t(output.Len()),opts)if token != C.llama_token_eos() {return token, nil