Skip to content

Handle errors in AI gateway client

Gosia Ksionek requested to merge mk-error-ai-gateway into master

What does this MR do and why?

Handle errors in AI gateway client.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

  1. setup AI according to the docs
  2. do not set up ENV with AI Gateway local address (we need to trigger any error). Alternatively, delete the ENV reference from this method
  3. on master - make duo chat query
  4. response should look like the "before" state
  5. switch to this branch and repeat making duo chat query
  6. observe if results are the same as in after state.

solves #434927 (closed)

Edited by Gosia Ksionek

Merge request reports