Josh Yan 10 ماه پیش
والد
کامیت
8ee1ada22a
2فایلهای تغییر یافته به همراه0 افزوده شده و 11 حذف شده
  1. 0 9
      api/client.go
  2. 0 2
      cmd/cmd.go

+ 0 - 9
api/client.go

@@ -403,12 +403,3 @@ func (c *Client) IsLocal() bool {
 
 	return false
 }
-
-// EnvConfig returns the environment configuration for the server.
-func (c *Client) ServerConfig(ctx context.Context) (*ServerConfig, error) {
-	var config ServerConfig
-	if err := c.do(ctx, http.MethodGet, "/api/config", nil, &config); err != nil {
-		return nil, err
-	}
-	return &config, nil
-}

+ 0 - 2
cmd/cmd.go

@@ -351,8 +351,6 @@ func getLocalPath(ctx context.Context, digest string) (string, error) {
 		return "", err
 	}
 
-	request.Header.Set("Content-Type", "application/json")
-	request.Header.Set("Accept", "application/json")
 	request.Header.Set("User-Agent", fmt.Sprintf("ollama/%s (%s %s) Go/%s", version.Version, runtime.GOARCH, runtime.GOOS, runtime.Version()))
 	request.Header.Set("X-Redirect-Create", "1")