mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix trailing whitespace in message filtering logic
Co-authored-by: markwallace-microsoft <127216156+markwallace-microsoft@users.noreply.github.com>
This commit is contained in:
@@ -678,7 +678,7 @@ class RawOpenAIResponsesClient( # type: ignore[misc]
|
||||
if last_assistant_idx >= 0:
|
||||
# Collect system/developer messages from before the last assistant
|
||||
system_messages = [
|
||||
msg for msg in chat_messages[:last_assistant_idx]
|
||||
msg for msg in chat_messages[:last_assistant_idx]
|
||||
if msg.role in ("system", "developer")
|
||||
]
|
||||
# Get all messages after the last assistant (new user messages)
|
||||
|
||||
Reference in New Issue
Block a user