Stability-AI / stability-sdk

SDK for interacting with stability.ai APIs (e.g. stable diffusion inference)
https://platform.stability.ai/
MIT License
2.42k stars 338 forks source link

Error cases in gRPC #277

Open mherkhachatryan opened 7 months ago

mherkhachatryan commented 7 months ago

in REST API, it's clearly defined what kind of possible error messages we can get, I can't find those anywhere for gRPC thought. There is only this piece about error in docs if artifact.finish_reason == generation.FILTER: for safety check.

How can I get and handle rate limit, unauthorized and other errors in gRPC?