Skip to content

Commit 5308d4d

Browse files
committed
bug #582 [AI Bundle] Correct exception message to mention both text and include_tools (OskarStark)
This PR was merged into the main branch. Discussion ---------- [AI Bundle] Correct exception message to mention both `text` and `include_tools` | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 2471398 fix [AI Bundle] Correct exception message to mention both 'text' and 'include_tools' options
2 parents bb79c3c + 2471398 commit 5308d4d

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)