Skip to content

Commit 9ffa8d4

Browse files
authored
chore: update to llm-chain 0.11 (#54)
1 parent e81727c commit 9ffa8d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=8.2",
14-
"php-llm/llm-chain": "^0.9.3 || ^0.10.0",
14+
"php-llm/llm-chain": "^0.11",
1515
"symfony/config": "^6.4 || ^7.0",
1616
"symfony/dependency-injection": "^6.4 || ^7.0",
1717
"symfony/framework-bundle": "^6.4 || ^7.0"

src/Resources/views/data_collector.html.twig

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@
101101
<tr>
102102
<th>Input</th>
103103
<td>
104-
{% if call.input is iterable %}{# expect MessageBag #}
104+
{% if call.input.messages is defined %}{# expect MessageBag #}
105105
<ol>
106-
{% for message in call.input %}
106+
{% for message in call.input.messages %}
107107
<li>
108108
<strong>{{ message.role.value|title }}:</strong>
109109
{% if 'assistant' == message.role.value and message.hasToolCalls%}
@@ -153,7 +153,7 @@
153153
<tr>
154154
<th>Response</th>
155155
<td>
156-
{% if call.input is iterable and call.response.content is iterable %}{# expect array of ToolCall #}
156+
{% if call.input.messages is defined and call.response.content is iterable %}{# expect array of ToolCall #}
157157
{{ _self.tool_calls(call.response.content) }}
158158
{% elseif call.response.content is iterable %}{# expect array of Vectors #}
159159
<ol>

0 commit comments

Comments
 (0)