tagny commited on
Commit
2a6b044
·
verified ·
1 Parent(s): f43eebd

fix: Clone a new agent per session to isolate the session conversation from others

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +4 -4
Gradio_UI.py CHANGED
@@ -186,10 +186,10 @@ class AgentCloner:
186
 
187
  def clone(self):
188
  new_model_client = HfApiModel(
189
- max_tokens=self.model.max_tokens,
190
- temperature=self.model.temperature,
191
- model_id=self.model.model_id,
192
- custom_role_conversions=self.model.custom_role_conversions,
193
  )
194
  new_agent = CodeAgent(
195
  model=new_model_client,
 
186
 
187
  def clone(self):
188
  new_model_client = HfApiModel(
189
+ max_tokens=self.model_client.max_tokens,
190
+ temperature=self.model_client.temperature,
191
+ model_id=self.model_client.model_id,
192
+ custom_role_conversions=self.model_client.custom_role_conversions,
193
  )
194
  new_agent = CodeAgent(
195
  model=new_model_client,