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 @@ -391,6 +391,9 @@ def _openai_chat_message_parser(
args["metadata"] = message.additional_properties
for content in message.contents:
match content:
case TextReasoningContent():
# Don't send reasoning content back to model
continue
case FunctionResultContent():
new_args: dict[str, Any] = {}
new_args.update(self._openai_content_parser(message.role, content, call_id_to_id))
Expand Down Expand Up @@ -485,6 +488,7 @@ def _openai_content_parser(
"type": "function_call",
"name": content.name,
"arguments": content.arguments,
"status": None,
}
case FunctionResultContent():
# call_id for the result needs to be the same as the call_id for the function call
Expand Down