Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
cotran2 committed Dec 9, 2024
1 parent 9998c8b commit 21fc0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion model_server/src/core/function_calling.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ async def chat_completion(self, req: ChatMessage) -> ChatCompletionResponse:
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
Expand Down

0 comments on commit 21fc0b5

Please sign in to comment.