Skip to content

Commit 11ef98f

Browse files
committed
bug #295 [AiBundle] Fix profiler with array arguments (valtzu)
This PR was merged into the main branch. Discussion ---------- [AiBundle] Fix profiler with array arguments | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | Fix #275 | License | MIT Commits ------- 764ff8f [AiBundle] Fix profiler with array arguments
2 parents 59fbaad + 764ff8f commit 11ef98f

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)