Spaces:
Sleeping
Sleeping
Commit
·
9bfb67d
1
Parent(s):
56bfed7
Added code to the same message
Browse files- api/llm.py +4 -1
api/llm.py
CHANGED
|
@@ -131,8 +131,11 @@ class LLMManager:
|
|
| 131 |
|
| 132 |
def update_chat_history(self, code, previous_code, chat_history, chat_display):
|
| 133 |
message = chat_display[-1][0]
|
|
|
|
| 134 |
if code != previous_code:
|
| 135 |
-
|
|
|
|
|
|
|
| 136 |
chat_history.append({"role": "user", "content": message})
|
| 137 |
|
| 138 |
return chat_history
|
|
|
|
| 131 |
|
| 132 |
def update_chat_history(self, code, previous_code, chat_history, chat_display):
|
| 133 |
message = chat_display[-1][0]
|
| 134 |
+
|
| 135 |
if code != previous_code:
|
| 136 |
+
message += "\nMY ILLUSTRATIONS AND CODE:\n"
|
| 137 |
+
message += code
|
| 138 |
+
|
| 139 |
chat_history.append({"role": "user", "content": message})
|
| 140 |
|
| 141 |
return chat_history
|