mirror of
https://github.com/katanemo/plano.git
synced 2026-07-11 16:12:13 +02:00
fix bug
This commit is contained in:
parent
7c73936351
commit
d276c54961
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ class ArchFunctionHandler(ArchBaseHandler):
|
||||||
|
|
||||||
return {"result": tool_calls, "status": is_valid, "message": error_message}
|
return {"result": tool_calls, "status": is_valid, "message": error_message}
|
||||||
|
|
||||||
def _correcting_type(value, target_type):
|
def _correcting_type(self, value, target_type):
|
||||||
try:
|
try:
|
||||||
if target_type == float and isinstance(value, int):
|
if target_type == float and isinstance(value, int):
|
||||||
return float(value)
|
return float(value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue