mirror of
https://github.com/aljazceru/opencode.git
synced 2026-02-23 16:54:27 +01:00
minor fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user