File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ def prepare(
319319 api , instructions , prompt
320320 )
321321 else :
322- raise ValueError ("Prompt or message history must be provided." )
322+ raise ValueError ("'prompt' or 'msg_history' must be provided." )
323323
324324 action .log (
325325 message_type = "info" ,
@@ -378,7 +378,7 @@ def call(
378378 except Exception :
379379 llm_response = api (prompt .source )
380380 else :
381- raise ValueError ("Prompt or message history must be provided." )
381+ raise ValueError ("'prompt' or 'msg_history' must be provided." )
382382
383383 action .log (
384384 message_type = "info" ,
@@ -728,7 +728,9 @@ async def async_call(
728728 except Exception :
729729 llm_response = await api (prompt .source )
730730 else :
731- raise ValueError ("Output, prompt or message history must be provided." )
731+ raise ValueError (
732+ "'output', 'prompt' or 'msg_history' must be provided."
733+ )
732734
733735 action .log (
734736 message_type = "info" ,
You can’t perform that action at this time.
0 commit comments