mirror of
https://github.com/katanemo/plano.git
synced 2026-06-26 15:39:40 +02:00
Merge branch 'shuguang/main' of https://github.com/katanemo/arch into shuguang/main
This commit is contained in:
commit
95740ca051
4 changed files with 110 additions and 16 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