File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ def prepare(
319
319
api , instructions , prompt
320
320
)
321
321
else :
322
- raise ValueError ("Prompt or message history must be provided." )
322
+ raise ValueError ("'prompt' or 'msg_history' must be provided." )
323
323
324
324
action .log (
325
325
message_type = "info" ,
@@ -378,7 +378,7 @@ def call(
378
378
except Exception :
379
379
llm_response = api (prompt .source )
380
380
else :
381
- raise ValueError ("Prompt or message history must be provided." )
381
+ raise ValueError ("'prompt' or 'msg_history' must be provided." )
382
382
383
383
action .log (
384
384
message_type = "info" ,
@@ -728,7 +728,9 @@ async def async_call(
728
728
except Exception :
729
729
llm_response = await api (prompt .source )
730
730
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
+ )
732
734
733
735
action .log (
734
736
message_type = "info" ,
You can’t perform that action at this time.
0 commit comments