fix: harden request handling, pipeline containment, and startup boundaries
This commit is contained in:
parent
2cc33a721c
commit
3555256a02
18 changed files with 656 additions and 107 deletions
|
|
@ -221,7 +221,8 @@ class _RecommendationObjectParser:
|
|||
return None
|
||||
|
||||
def _finish_object(self) -> RerankSelectionOutput:
|
||||
assert self._object_start is not None
|
||||
if self._object_start is None:
|
||||
raise RecommenderOutputError("Rerank parser lost the object start position")
|
||||
object_text = self.complete_text[self._object_start : self._scan_index + 1]
|
||||
self._object_start = None
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue