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

Function body

tests/test_streaming.py:15–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
14async def test_basic(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:
15 def body() -> Iterator[bytes]:
16 yield b"event: completion\n"
17 yield b'data: {"foo":true}\n'
18 yield b"\n"
19
20 iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
21

Calls

no outgoing calls

Tested by

no test coverage detected