go-skynet / go-llama.cpp

LLama.cpp golang bindings
MIT License
650 stars 79 forks source link

min function not found at line 309 in llama.go #190

Closed armx40 closed 11 months ago

armx40 commented 1 year ago

Simple work around seems to be

gLenOut := int(math.Min(float64(len(out)), float64(int(gTokRet))))

mudler commented 11 months ago

min was introduced with go 1.21, and as such go 1.21 is required . Closing