fix: fill a meaningful tool_index (#16504)
This commit is contained in:
@@ -83,7 +83,7 @@ class BaseFormatDetector(ABC):
|
||||
|
||||
results.append(
|
||||
ToolCallItem(
|
||||
tool_index=-1, # Caller should update this based on the actual tools array called
|
||||
tool_index=tool_indices.get(name, -1),
|
||||
name=name,
|
||||
parameters=json.dumps(
|
||||
act.get("parameters") or act.get("arguments", {}),
|
||||
|
||||
Reference in New Issue
Block a user