Pulastya B commited on
Commit
91fe653
·
1 Parent(s): ebbb065

fix: Remove invalid parameter from start_chat()

Browse files

- Remove enable_automatic_function_calling parameter
- start_chat() only accepts history parameter
- Tested against actual Gemini API documentation

Files changed (1) hide show
  1. src/orchestrator.py +2 -2
src/orchestrator.py CHANGED
@@ -1328,8 +1328,8 @@ You are a DOER. Complete workflows based on user intent."""
1328
  tools=gemini_tools
1329
  )
1330
 
1331
- # Start chat with the tool-configured model
1332
- gemini_chat = gemini_model_with_tools.start_chat(history=[], enable_automatic_function_calling=False)
1333
 
1334
  while iteration < max_iterations:
1335
  iteration += 1
 
1328
  tools=gemini_tools
1329
  )
1330
 
1331
+ # Start chat with the tool-configured model (no extra parameters)
1332
+ gemini_chat = gemini_model_with_tools.start_chat(history=[])
1333
 
1334
  while iteration < max_iterations:
1335
  iteration += 1