From c87fe7df48a766e2a0ed74d54a2cffb4ea46623c Mon Sep 17 00:00:00 2001 From: Blake Mizerany Date: Sun, 31 Mar 2024 11:12:50 -0700 Subject: [PATCH] client/ollama: make Error.Message optional --- client/ollama/ollama.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ollama/ollama.go b/client/ollama/ollama.go index 9edfc73c..c87a5656 100644 --- a/client/ollama/ollama.go +++ b/client/ollama/ollama.go @@ -88,7 +88,7 @@ type Error struct { // Message is a humage readable message that describes the error. It // may change across versions of the API, so it should not be used for // programmatic decisions. - Message string `json:"message"` + Message string `json:"message,omitempty"` // Field is the field in the request that caused the error, if any. Field string `json:"field,omitempty"`