Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@
stop_reason: Optional[str] = None

first_chunk = True
serialized_messages: List[Dict[str, Any]] = [self._serialize_message(msg) for msg in anthropic_messages]

Check warning on line 769 in python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py

View check run for this annotation

Codecov / codecov/patch

python/packages/autogen-ext/src/autogen_ext/models/anthropic/_anthropic_client.py#L769

Added line #L769 was not covered by tests

# Process the stream
async for chunk in stream:
Expand All @@ -774,7 +775,7 @@
# Emit the start event.
logger.info(
LLMStreamStartEvent(
messages=cast(List[Dict[str, Any]], anthropic_messages),
messages=serialized_messages,
)
)
# Handle different event types
Expand Down
Loading