SolshineMisfit commited on
Commit
b3ef8fa
·
verified ·
1 Parent(s): 4846e31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -625,7 +625,15 @@ def context_managed_run(self, query, max_steps=None, persist_conversation=None,
625
  print(f"Conversation history trimmed from {original_length} to {len(self.conversation)} messages")
626
 
627
  # Call the original run method with all parameters (including stream)
628
- return original_code_agent_run(self, query, max_steps, persist_conversation, stream=stream, reset=reset, additional_args=additional_args)
 
 
 
 
 
 
 
 
629
 
630
  # Apply the monkey patch to CodeAgent class
631
  CodeAgent.run = context_managed_run
 
625
  print(f"Conversation history trimmed from {original_length} to {len(self.conversation)} messages")
626
 
627
  # Call the original run method with all parameters (including stream)
628
+ return original_code_agent_run(
629
+ self,
630
+ query=query,
631
+ max_steps=max_steps,
632
+ persist_conversation=persist_conversation,
633
+ stream=stream,
634
+ reset=reset,
635
+ additional_args=additional_args
636
+ )
637
 
638
  # Apply the monkey patch to CodeAgent class
639
  CodeAgent.run = context_managed_run