mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Collect debugging log
This commit is contained in:
parent
f13947732c
commit
8871d3f751
4 changed files with 92 additions and 14 deletions
|
|
@ -278,6 +278,9 @@ class HallucinationStateHandler:
|
|||
f"Hallucination: token '{self.tokens[-1]}' is uncertain."
|
||||
)
|
||||
|
||||
# [TODO] - Review: remove the following code
|
||||
print(f"[Hallucination] - Hallucination detected: {self.error_message}")
|
||||
|
||||
def _count_consecutive_token(self, token=MaskToken.PARAMETER_VALUE) -> int:
|
||||
"""
|
||||
Counts the number of consecutive occurrences of a given token in the mask.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue