File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -979,7 +979,12 @@ def __call__(
979
979
"""
980
980
instructions = instructions or self ._exec_opts .instructions
981
981
prompt = prompt or self ._exec_opts .prompt
982
- msg_history = msg_history or kwargs .get ("messages" , None ) or []
982
+ msg_history = (
983
+ msg_history
984
+ or kwargs .get ("messages" , None )
985
+ or self ._exec_opts .messages
986
+ or []
987
+ )
983
988
if prompt is None :
984
989
if msg_history is not None and not len (msg_history ):
985
990
raise RuntimeError (
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ def rail_string_to_schema(rail_string: str) -> ProcessedSchema:
455
455
role = message .attrib .get ("role" )
456
456
content = message .text
457
457
extracted_reask_messages .append ({"role" : role , "content" : content })
458
- processed_schema .exec_opts .messages = extracted_reask_messages
458
+ processed_schema .exec_opts .reask_messages = extracted_reask_messages
459
459
460
460
return processed_schema
461
461
You can’t perform that action at this time.
0 commit comments