Skip to content

Commit c525dfb

Browse files
committed
clean message in list
1 parent e966389 commit c525dfb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/codegate/api/v1.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,10 @@ async def get_workspace_messages(
510510
logger.warning(f"Skipping prompt {prompt.id}. No messages found")
511511
continue
512512

513-
# message is just the first entry in the request
513+
# message is just the first entry in the request, cleaned properly
514+
message = v1_processing.parse_question_answer(messages[0])
514515
message_obj = v1_models.ChatMessage(
515-
message=messages[0], timestamp=prompt.timestamp, message_id=prompt.id
516+
message=message, timestamp=prompt.timestamp, message_id=prompt.id
516517
)
517518

518519
# count total alerts for the prompt

0 commit comments

Comments
 (0)