Skip to content

Commit 329ee7f

Browse files
committed
init model_keys to prevent UnboundLocalError
1 parent db07b1f commit 329ee7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ async def on_handoff_hook(
430430
# optional global vars available for the taskflow tasks
431431
global_variables = taskflow.get('globals', {})
432432
model_config = taskflow.get('model_config', {})
433+
model_keys = []
433434
if model_config:
434435
model_dict = available_tools.model_config.get(model_config, {})
435436
if not model_dict:

0 commit comments

Comments
 (0)