diff --git a/api/client.go b/api/client.go index 53ae743ff..c4f213463 100644 --- a/api/client.go +++ b/api/client.go @@ -394,12 +394,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 -} diff --git a/cmd/cmd.go b/cmd/cmd.go index 8ffb9bf91..a2ecfad7e 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -354,8 +354,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")