Bruce MacDonald 2 months ago
parent
commit
b438a483ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/types.go

+ 1 - 1
api/types.go

@@ -643,7 +643,7 @@ func (d *Duration) UnmarshalJSON(b []byte) (err error) {
 // ErrorResponse implements a structured error interface that is returned from the Ollama server
 // ErrorResponse implements a structured error interface that is returned from the Ollama server
 type ErrorResponse struct {
 type ErrorResponse struct {
 	// Err is the error from the server. It helps with debugging the code-path
 	// Err is the error from the server. It helps with debugging the code-path
-	Err  string `json:"error"`
+	Err string `json:"error"`
 
 
 	// Hint is a user-friendly message about what went wrong, with suggested troubleshooting
 	// Hint is a user-friendly message about what went wrong, with suggested troubleshooting
 	Hint string `json:"hint"`
 	Hint string `json:"hint"`