Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

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

Lines changed: 3 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy