Skip to content

Commit 75b3e64

Browse files
CopilotCopilot
authored andcommitted
fix: set both text and contents on Message, restore copyright header
- Set both text= and contents= when constructing Message in InputObserverMiddleware for compatibility with downstream code - Restore missing copyright header in azure_openai_response_retry.py Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 271fc27 commit 75b3e64

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/processor/src/libs/agent_framework/azure_openai_response_retry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright (c) Microsoft Corporation.
12
# Licensed under the MIT License.
23

34
"""Azure OpenAI Responses client wrapper with rate-limit-aware retry logic."""

src/processor/src/libs/agent_framework/middlewares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def process(
159159
f"[InputObserverMiddleware] Updated: '{original_text}' -> '{updated_text}'"
160160
)
161161

162-
modified_message = Message(role=message.role, contents=updated_text)
162+
modified_message = Message(role=message.role, text=updated_text, contents=updated_text)
163163
modified_messages.append(modified_message)
164164
modified_count += 1
165165
else:

0 commit comments

Comments
 (0)