diff --git a/neo/assistant/api.go b/neo/assistant/api.go index 4bd611bc..f8b0bef8 100644 --- a/neo/assistant/api.go +++ b/neo/assistant/api.go @@ -631,6 +631,7 @@ func (ast *Assistant) streamChat( // if the prompt is empty, return the error if prompt == "" { + chatMessage.New().Error(retry.Error()).Done().Callback(cb).Write(c.Writer) return nil, retry }