File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " >=8.2" ,
14
- "php-llm/llm-chain" : " ^0.9.3 || ^0.10.0 " ,
14
+ "php-llm/llm-chain" : " ^0.11 " ,
15
15
"symfony/config" : " ^6.4 || ^7.0" ,
16
16
"symfony/dependency-injection" : " ^6.4 || ^7.0" ,
17
17
"symfony/framework-bundle" : " ^6.4 || ^7.0"
Original file line number Diff line number Diff line change 101
101
<tr >
102
102
<th >Input</th >
103
103
<td >
104
- {% if call .input is iterable %}{# expect MessageBag #}
104
+ {% if call .input . messages is defined %}{# expect MessageBag #}
105
105
<ol >
106
- {% for message in call .input %}
106
+ {% for message in call .input . messages %}
107
107
<li >
108
108
<strong >{{ message .role .value | title }}:</strong >
109
109
{% if ' assistant' == message .role .value and message .hasToolCalls%}
153
153
<tr >
154
154
<th >Response</th >
155
155
<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 #}
157
157
{{ _self.tool_calls (call .response .content ) }}
158
158
{% elseif call .response .content is iterable %}{# expect array of Vectors #}
159
159
<ol >
You can’t perform that action at this time.
0 commit comments