From 329ee7f63adc060d639ba38052dd6ce5ec78c8bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20St=C3=B6ckli?= Date: Thu, 23 Oct 2025 08:10:41 +0000 Subject: [PATCH] init model_keys to prevent UnboundLocalError --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 5986c50..02bdfcf 100644 --- a/main.py +++ b/main.py @@ -430,6 +430,7 @@ async def on_handoff_hook( # optional global vars available for the taskflow tasks global_variables = taskflow.get('globals', {}) model_config = taskflow.get('model_config', {}) + model_keys = [] if model_config: model_dict = available_tools.model_config.get(model_config, {}) if not model_dict: