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

Method text

src/openai/_response.py:346–349  ·  view source on GitHub ↗

Read and decode the response content into a string.

(self)

Source from the content-addressed store, hash-verified

344 raise StreamAlreadyConsumed() from exc
345
346 def text(self) -> str:
347 """Read and decode the response content into a string."""
348 self.read()
349 return self.http_response.text
350
351 def json(self) -> object:
352 """Read and decode the JSON response content."""

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected