This commit is contained in:
Josh Yan 2024-07-03 17:07:59 -07:00
parent cabf375059
commit 413d368a6a
2 changed files with 0 additions and 11 deletions

View File

@ -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
}

View File

@ -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")