| 346 | |
| 347 | |
| 348 | class MissingStreamClassError(TypeError): |
| 349 | def __init__(self) -> None: |
| 350 | super().__init__( |
| 351 | "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `openai._streaming` for reference", |
| 352 | ) |
| 353 | |
| 354 | |
| 355 | def to_raw_response_wrapper(func: Callable[P, R]) -> Callable[P, LegacyAPIResponse[R]]: |