Local tool
OpenAI Responses SSE stream inspector
Inspect raw OpenAI Responses SSE, compare text and function argument deltas with final payloads, and identify refusal or incomplete outputs.
Sources checked:
What you can do
Diagnose a captured Responses stream by item, terminal status and structured arguments.
Paste a single raw capture. The inspector keeps incremental output and full-value events separate and highlights differences.
Inspect a captured Responses stream
The stream is parsed in this browser.
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
Your Pydantic parser yielded no output_parsed value or threw.
Read the full steps
Separate parsed output, refusal and incomplete results
Your Pydantic parser yielded no output_parsed value or threw.
- Capture the response state and incomplete reason before consuming parsed output. Check the typed output items for refusal parts.
- Inspect a raw SSE capture here, or use the SDK's typed response if the request was non-streaming. Treat refusal, token-limit incomplete, failed and valid output as separate outcomes.
- Parse only completed candidate content. Run a valid object, refusal and truncated object through your consumer; inspect an invalid schema as a separate request error.
Find why an output_text.delta buffer is empty
The stream connected, but your display only shows blank text.
- Capture one raw response stream and paste its event frames below. Compare event types and terminal state.
- Check whether there are function-call, refusal or text items in the final output. Join only text deltas for the relevant output and content index.
- If final payload has text but no captured delta for it, check capture or SDK event handling. If no terminal event was captured, inspect disconnect and timeout logs.
Detect duplicate function arguments in a stream
Your accumulated tool arguments are repeated or fail JSON parsing.
- Inspect the capture by output index and item. Separate deltas from response.function_call_arguments.done, which carries the entire value.
- Compare assembled fragments with the final value. Check duplicate sequence frames or a capture that mixes more than one response.
- Validate complete arguments against your tool schema at execution time and guard side effects with call-level idempotency.
Scope & limits
- JSON syntax checks do not validate a schema. The inspector reports the events you captured.
Verified sources
- Structured model outputs
- Streaming API responses
- responses.stream crashes with TypeError: 'NoneType' object is not iterable when server emits response.completed with output=None · Issue #3312 · openai/openai-python · GitHub
- Function calling
- Streaming tool_call deltas with duplicate indexes in first chunk are accumulated incorrectly · Issue #3201 · openai/openai-python · GitHub
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.