[gpt-oss] Support tool call and implement MCP tool server (#22427)

Signed-off-by: Chen Zhang <zhangch99@outlook.com>
This commit is contained in:
Chen Zhang
2025-08-08 15:06:37 -07:00
committed by GitHub
parent e290594072
commit fe6d8257a1
4 changed files with 233 additions and 82 deletions

View File

@@ -237,7 +237,10 @@ def parse_output_message(message: Message) -> list[ResponseOutputItem]:
id=f"rs_{random_uuid()}",
summary=[],
type="reasoning",
text=content.text,
content=[
ResponseReasoningTextContent(text=content.text,
type="reasoning_text")
],
status=None,
)
output_items.append(reasoning_item)