aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-01-29 18:06:52 +0800
committer苏向夜 <fu050409@163.com>2024-01-29 18:06:52 +0800
commit9ec09b4e7506ab533d52498abb432d5f00c0f276 (patch)
tree0b4fa5eb9ff171c65c52741e3685053268c7a47b
parent6bae459589a005cf027138e6d3a7e51570e2a159 (diff)
downloadinfini-9ec09b4e7506ab533d52498abb432d5f00c0f276.tar.gz
infini-9ec09b4e7506ab533d52498abb432d5f00c0f276.zip
fix(core): fix no outcome yield when block is True
-rw-r--r--src/infini/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/infini/core.py b/src/infini/core.py
index 40ed6f4c..87066370 100644
--- a/src/infini/core.py
+++ b/src/infini/core.py
@@ -30,9 +30,9 @@ class Core:
yield self.generate(stream)
continue
outcome = stream
+ yield outcome
if handled_stream.block:
return
- yield outcome
def pre_intercept(self, input: Input) -> Generator[Output | Input, Any, None]:
return self.pre_interceptor.input(input)