ResponseStream¶
Union Type¶
ResponseStream
module-attribute
¶
ResponseStream = Union[ResponseStreamChunk | ResponseStreamInternalServerException | ResponseStreamModelStreamErrorException | ResponseStreamValidationException | ResponseStreamThrottlingException | ResponseStreamModelTimeoutException | ResponseStreamServiceUnavailableException | ResponseStreamUnknown]
Definition of content in the response stream.
Union Member Types¶
ResponseStreamInternalServerException
dataclass
¶
An internal server error occurred. Retry your request.
Attributes¶
ResponseStreamModelStreamErrorException
dataclass
¶
An error occurred while streaming the response. Retry your request.
Attributes¶
ResponseStreamValidationException
dataclass
¶
Input validation failed. Check your request parameters and retry the request.
Attributes¶
ResponseStreamThrottlingException
dataclass
¶
Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process.
Attributes¶
ResponseStreamModelTimeoutException
dataclass
¶
The request took too long to process. Processing time exceeded the model timeout length.