clean
This commit is contained in:
parent
cabf375059
commit
413d368a6a
@ -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
|
||||
}
|
||||
|
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user