mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
address comments
This commit is contained in:
parent
e44d189d86
commit
e30bbe39e7
3 changed files with 51 additions and 32 deletions
|
|
@ -52,7 +52,7 @@ def test_hallucination(case):
|
|||
)
|
||||
for token, logprob in zip(case["tokens"], case["logprobs"]):
|
||||
if token != "</tool_call>":
|
||||
state.check_token_hallucination(token, logprob)
|
||||
state.append_and_check_token_hallucination(token, logprob)
|
||||
if state.hallucination:
|
||||
break
|
||||
assert state.hallucination == case["expect"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue