Fix repeated stream finishes and preserve cancellation causes
This commit is contained in:
1 parent
3170b28251
commit
019a38f111
5 files changed
+68
-2
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ func (r *Runtime) applySteering(ctx context.Context, pending []llm.ToolCall) (bo
|
||||
return false, nil
|
||||
}
|
||||
if err := ctx.Err(); err != nil {
|
||||
return false, err
|
||||
return false, context.Cause(ctx)
|
||||
}
|
||||
message, err := source(ctx)
|
||||
if err != nil || message == nil {
|
||||
|
||||
Reference in new issue
Block a user