MCPcopy
hub / github.com/openai/openai-python / _on_response

Function _on_response

tests/lib/chat/test_completions_streaming.py:1115–1117  ·  view source on GitHub ↗
(response: httpx.Response)

Source from the content-addressed store, hash-verified

1113 if live:
1114
1115 def _on_response(response: httpx.Response) -> None:
1116 # update the content snapshot
1117 assert outsource(response.read()) == content_snapshot
1118
1119 respx_mock.stop()
1120

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected