Spaces:
Paused
Paused
fix: Clone a new agent per session to isolate the session conversation from others
Browse files- 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.
|
190 |
-
temperature=self.
|
191 |
-
model_id=self.
|
192 |
-
custom_role_conversions=self.
|
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,
|