Skip to content

Commit

Permalink
🎨 fix: Update messages list in request.py
Browse files Browse the repository at this point in the history
- Add SystemMessage to messages list
- Fix indentation in check_stop function
- Update indentation in extract function
  • Loading branch information
sudoskys committed Apr 17, 2024
1 parent 17576ba commit 2fccf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/middleware/llm_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def build_message(self, remember=True):
if isinstance(system_prompt, str):
message_run.append(SystemMessage(content=system_prompt))
history = await self.message_history.read(lines=10)
history = reversed(history)
logger.trace(f"History message {history}")
for de_active_message in history:
try:
msg = active_cell_string(de_active_message)
Expand Down

0 comments on commit 2fccf42

Please sign in to comment.