mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
return error in generate response
This commit is contained in:
@@ -15,6 +15,7 @@ func (e Error) Error() string {
|
||||
if e.Message == "" {
|
||||
return fmt.Sprintf("%d %v", e.Code, strings.ToLower(http.StatusText(int(e.Code))))
|
||||
}
|
||||
|
||||
return e.Message
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user