This commit is contained in:
cotran 2024-12-09 15:37:17 -08:00
parent 9998c8b0f3
commit 21fc0b5624

View file

@ -495,7 +495,9 @@ class ArchFunctionHandler(ArchBaseHandler):
print(
f"Hallucination detected for the following response, start parameter gathering: \n{''.join(self.hallu_handler.tokens)}"
)
print(f"Token entropy/varentropy map: {self.hallu_handler.entropy_map}")
print(
f"Token entropy/varentropy map: {self.hallu_handler.token_probs_map}"
)
prefill_response = self._engage_parameter_gathering(messages)
model_response = prefill_response.choices[0].message.content
break