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

Method text

src/openai/_response.py:453–456  ·  view source on GitHub ↗

Read and decode the response content into a string.

(self)

Source from the content-addressed store, hash-verified

451 raise StreamAlreadyConsumed() from exc
452
453 async def text(self) -> str:
454 """Read and decode the response content into a string."""
455 await self.read()
456 return self.http_response.text
457
458 async def json(self) -> object:
459 """Read and decode the JSON response content."""

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected