Skip to content

Commit 2471398

Browse files
committed
fix [AI Bundle] Correct exception message to mention both 'text' and 'include_tools' options
1 parent bb79c3c commit 2471398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ai-bundle/config/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
->ifArray()
143143
->then(function (array $v) {
144144
if (!isset($v['text']) && !isset($v['include_tools'])) {
145-
throw new \InvalidArgumentException('Either "text" must be configured for prompt.');
145+
throw new \InvalidArgumentException('Either "text" or "include_tools" must be configured for prompt.');
146146
}
147147

148148
return $v;

0 commit comments

Comments
 (0)