Skip to content

Commit 764ff8f

Browse files
committed
[AiBundle] Fix profiler with array arguments
1 parent a50d26e commit 764ff8f

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
@@ -48,7 +48,7 @@
4848
<ol>
4949
{% for toolCall in toolCalls %}
5050
<li>
51-
<strong>{{ toolCall.name }}({{ toolCall.arguments|map((value, key) => "#{key}: #{value}")|join(', ') }})</strong>
51+
<strong>{{ toolCall.name }}({{ toolCall.arguments|map((value, key) => "#{key}: #{value|json_encode}")|join(', ') }})</strong>
5252
<i>(ID: {{ toolCall.id }})</i>
5353
</li>
5454
{% endfor %}

0 commit comments

Comments
 (0)