Skip to content

Commit 6066ebe

Browse files
committed
bug #700 [AI Bundle] Fix data_collector template for multiple parameter types (franzwilding)
This PR was merged into the main branch. Discussion ---------- [AI Bundle] Fix data_collector template for multiple parameter types | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT The tool call parameter type can be an array (for example, when it is nullable). In this case, the entire profiler tab breaks. This fix addresses the issue by properly handling multiple types. Commits ------- 9699a03 [AI Bundle] Fix data_collector template for multiple parameter types
2 parents 8fb30ba + 9699a03 commit 6066ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ai-bundle/templates/data_collector.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
<ul>
201201
{% for name, parameter in tool.parameters.properties %}
202202
<li>
203-
<strong>{{ name }} ({{ parameter.type }})</strong><br />
203+
<strong>{{ name }} ({{ parameter.type is iterable ? parameter.type|join(', ') : parameter.type }})</strong><br />
204204
<i>{{ parameter.description|default() }}</i>
205205
</li>
206206
{% endfor %}

0 commit comments

Comments
 (0)