Skip to content

Commit 99eace8

Browse files
authored
Merge pull request #31 from GitHubSecurityLab/p--init-mk
fix: init model_keys to prevent error on task flows without model config
2 parents db07b1f + 329ee7f commit 99eace8

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)