This commit is contained in:
Timothy Jaeryang Baek committed 2026-02-01 20:07:11 -06:00
1 parent 6719558150
commit 117c091b95
1 file changed
+2 -5
+2 -5
View File
@@ -391,7 +391,6 @@ def serialize_output(output: list) -> str:
else: else:
content = f'{content}<details type="reasoning" done="false">\n<summary>Thinking…</summary>\n{display}\n</details>\n' content = f'{content}<details type="reasoning" done="false">\n<summary>Thinking…</summary>\n{display}\n</details>\n'
elif item_type == "open_webui:code_interpreter": elif item_type == "open_webui:code_interpreter":
content_stripped, original_whitespace = split_content_and_whitespace( content_stripped, original_whitespace = split_content_and_whitespace(
content content
@@ -3484,9 +3483,6 @@ async def process_chat_response(
) )
# Check for Responses API events (type field starts with "response.") # Check for Responses API events (type field starts with "response.")
elif data.get("type", "").startswith("response."): elif data.get("type", "").startswith("response."):
print(data)
output, response_metadata = ( output, response_metadata = (
handle_responses_streaming_event(data, output) handle_responses_streaming_event(data, output)
) )
@@ -3496,7 +3492,8 @@ async def process_chat_response(
"content": serialize_output(output), "content": serialize_output(output),
} }
print(processed_data) # print(data)
# print(processed_data)
# Merge any metadata (usage, done, etc.) # Merge any metadata (usage, done, etc.)
if response_metadata: if response_metadata: