mirror of
https://github.com/ollama/ollama.git
synced 2026-04-19 14:54:21 +02:00
clean
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user