openai.internal._reject
(internal) Every LOCAL, pre-send rejection in the chat family throws ONE error identity: `ai.errors.InvalidRequest` with a null status code — the class `ResponsesClient`, `GeminiClient`, `ImageClient` and the Bedrock client already use.
Signature
(internal) Every LOCAL, pre-send rejection in the chat family throws ONE error
identity: ai.errors.InvalidRequest with a null status code — the class
ResponsesClient, GeminiClient, ImageClient and the Bedrock client
already use.
It matters that this is an ai.errors.Failure and not
baml.errors.InvalidArgument: ai.errors.normalize flattens a non-Failure
into an untyped baml.errors.UnknownError, and ai.Fallback only advances
to the next member on a TYPED failure. A missing key in one member of a
fallback chain has to fall through, not abort the chain.
Source:<builtin>/openai/ns_internal/chat.bamlbytes 2177–2399