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 @@ -484,7 +484,7 @@ def prepare(
484
484
)
485
485
else :
486
486
raise UserFacingException (
487
- ValueError ("Prompt or message history must be provided." )
487
+ ValueError ("'prompt' or 'msg_history' must be provided." )
488
488
)
489
489
490
490
action .log (
@@ -544,7 +544,7 @@ def call(
544
544
except Exception :
545
545
llm_response = api (prompt .source )
546
546
else :
547
- raise ValueError ("Prompt or message history must be provided." )
547
+ raise ValueError ("'prompt' or 'msg_history' must be provided." )
548
548
549
549
action .log (
550
550
message_type = "info" ,
@@ -924,7 +924,9 @@ async def async_call(
924
924
except Exception :
925
925
llm_response = await api (prompt .source )
926
926
else :
927
- raise ValueError ("Output, prompt or message history must be provided." )
927
+ raise ValueError (
928
+ "'output', 'prompt' or 'msg_history' must be provided."
929
+ )
928
930
929
931
action .log (
930
932
message_type = "info" ,
You can’t perform that action at this time.
0 commit comments