mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix bug
This commit is contained in:
parent
3b0ba352a9
commit
63cc2ef3f3
1 changed files with 1 additions and 2 deletions
|
|
@ -495,8 +495,7 @@ class ArchFunctionHandler(ArchBaseHandler):
|
|||
model_response = prefill_response.choices[0].message.content
|
||||
break
|
||||
|
||||
# start parameter gathering if the model is not generating tool calls
|
||||
if self.hallu_handler.hallucination == False:
|
||||
if has_tool_call and self.hallu_handler.hallucination == False:
|
||||
model_response = "".join(self.hallu_handler.tokens)
|
||||
|
||||
# start parameter gathering if the model is not generating tool calls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue