gabejavitt commited on
Commit
a61ff20
Β·
verified Β·
1 Parent(s): 380fc47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -636,7 +636,12 @@ Your goal: Provide the EXACT answer in the EXACT format requested.
636
  model_name="openai/gpt-oss-120b",
637
  max_tokens=4096,
638
  timeout=60
639
- ).bind_tools(self.tools)
 
 
 
 
 
640
  print("βœ… Main LLM (llama-3.3-70b-versatile with tools) initialized.")
641
 
642
  except Exception as e:
 
636
  model_name="openai/gpt-oss-120b",
637
  max_tokens=4096,
638
  timeout=60
639
+ ).bind_tools(
640
+ self.tools,
641
+ # This setting forces the model to call one of the bound tools.
642
+ # 'auto' is the default, but 'any' is stricter for an agent.
643
+ tool_choice="any"
644
+ )
645
  print("βœ… Main LLM (llama-3.3-70b-versatile with tools) initialized.")
646
 
647
  except Exception as e: