Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
refactor: use builtin max and min
shengxinjing47298fce39c2
diff --git a/model/models/llama4/process_image.go b/model/models/llama4/process_image.goindex bfeb64334..0b3fab538 100644--- a/model/models/llama4/process_image.go+++ b/model/models/llama4/process_image.go@@ -124,7 +124,7 @@ func (p ImageProcessor) maxResolution(imageRes, targetRes image.Point) image.Poiif scaleW < scaleH {newRes = image.Point{targetRes.X,- int(math.Floor(float64(imageRes.Y)*scaleW), float64(targetRes.Y))),+ int(min(math.Floor(float64(imageRes.Y)*scaleW), float64(targetRes.Y))),}} else {newRes = image.Point{