refactor(validate.py): change wrapped_function from async to sync
fix(test_chains_template.py): set prompt show value to False for mid_journey_prompt_chain and time_travel_guide_chain tests
This commit is contained in:
parent
07863ea098
commit
357d13b1a9
2 changed files with 3 additions and 3 deletions
|
|
@ -155,7 +155,7 @@ def create_function(code, function_name):
|
|||
exec_globals[function_name] = locals()[function_name]
|
||||
|
||||
# Return a function that imports necessary modules and calls the target function
|
||||
async def wrapped_function(*args, **kwargs):
|
||||
def wrapped_function(*args, **kwargs):
|
||||
for module_name, module in exec_globals.items():
|
||||
if isinstance(module, type(importlib)):
|
||||
globals()[module_name] = module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue