Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
fix: text to speech doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Jan 8, 2024
1 parent fe52d0a commit 674b1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (c *ChatHandler) completion(ctx context.Context, latestMs []client.Message,
if err != nil {
if errors.Is(err, io.EOF) {
c.sse.PublishData(c.streamId, EventMessageTextEOF, meta)
return "", nil
return text, nil
} else {
c.sse.PublishData(c.streamId, EventMessageError,
Error{MessageMeta: meta, ErrMsg: err.Error()})
Expand Down

0 comments on commit 674b1a8

Please sign in to comment.