Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

remove unnecessary fmt.Sprintf

Michael Yang70e0ab6b3d57
diff --git a/server/images.go b/server/images.go
index f7cbd47fd..19ce467e5 100644
--- a/server/images.go
+++ b/server/images.go
@@ -873,14 +873,11 @@ func checkBlobExistence(mp ModelPath, digest string, regOpts *RegistryOptions) (
return resp.StatusCode == http.StatusOK, nil
}
-func uploadBlobChunked(mp ModelPath, location string, layer *Layer, regOpts *RegistryOptions, fn func(api.ProgressResponse)) error {
+func uploadBlobChunked(mp ModelPath, url string, layer *Layer, regOpts *RegistryOptions, fn func(api.ProgressResponse)) error {
// TODO allow resumability
// TODO allow canceling uploads via DELETE
// TODO allow cross repo blob mount
- // Create URL
- url := location
-
fp, err := GetBlobsPath(layer.Digest)
if err != nil {
return err