Handle exceptions from AI Gateway
Problem
Currently, Gitlab::Llm::AiGateway::Client
/ Gitlab::Llm::Chain::Requests::AiGateway
doesn't handle error responses from the AI Gateway, such as 401 Invalid authorization header
.
We should make sure that the errors are gracefully handled.
Proposal
Handle exceptions from AI Gateway
Auto generated
The following discussion from !138274 (merged) should be addressed:
-
@mksionek started a discussion: (+4 comments) This place fails if the response from AI gateway is not succesful.