minor fixes
This commit is contained in:
parent
2af1bbb828
commit
65055c7687
3 changed files with 3 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
|
@ -236,7 +237,7 @@ func (a *anthropicProvider) StreamResponse(ctx context.Context, messages []messa
|
|||
}
|
||||
|
||||
err := stream.Err()
|
||||
if err == nil {
|
||||
if err == nil || errors.Is(err, io.EOF) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue