From 2471398b815ef60b4306fe463d61ac263889be2a Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sat, 13 Sep 2025 23:02:38 +0200 Subject: [PATCH] fix [AI Bundle] Correct exception message to mention both 'text' and 'include_tools' options --- src/ai-bundle/config/options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai-bundle/config/options.php b/src/ai-bundle/config/options.php index ba5c545e6..86ee44f31 100644 --- a/src/ai-bundle/config/options.php +++ b/src/ai-bundle/config/options.php @@ -142,7 +142,7 @@ ->ifArray() ->then(function (array $v) { if (!isset($v['text']) && !isset($v['include_tools'])) { - throw new \InvalidArgumentException('Either "text" must be configured for prompt.'); + throw new \InvalidArgumentException('Either "text" or "include_tools" must be configured for prompt.'); } return $v;