Typed API errors
Catch status-specific exceptions with the response body and retry metadata.
This example assumes using TypeSafeAI; is in scope and apiKey contains your TypeSafe AI API key.
1 2 3 4 5 6 | |
Catch status-specific exceptions with the response body and retry metadata.
This example assumes using TypeSafeAI; is in scope and apiKey contains your TypeSafe AI API key.
1 2 3 4 5 6 | |