Skip to content
Open
Changes from 1 commit
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 @@ -302,6 +302,8 @@ def _create_chat_message_content(
items: list[CMC_ITEM_TYPES] = []
if candidate.content and candidate.content.parts:
for idx, part in enumerate(candidate.content.parts):
if part.thought:
Comment thread
dariusFTOS marked this conversation as resolved.
Resolved
continue
if part.text:
items.append(TextContent(text=part.text, inner_content=response, metadata=response_metadata))
Comment on lines +315 to 318
elif part.function_call:
Expand Down Expand Up @@ -357,6 +359,8 @@ def _create_streaming_chat_message_content(
items: list[STREAMING_ITEM_TYPES] = []
if candidate.content and candidate.content.parts:
for idx, part in enumerate(candidate.content.parts):
if part.thought:
Comment thread
dariusFTOS marked this conversation as resolved.
Resolved
continue
if part.text:
items.append(
StreamingTextContent(
Expand Down
Loading