Skip to content

Generalize AI Gateway client to any endpoint

Alejandro Rodríguez requested to merge generalize-aigw-client into master

What does this MR do and why?

Generalize AI Gateway client to any endpoint

The AI Gateway client is currently tailored to perform requests to the /v1/chat/agent endpoint. In the near future we'll want to use it to perform requests to other endpoints, which use different request and response structures. We move the code specific to the chat endpoint to the relevant request class, and adjust all the callers accordingly.

This prepares the ground for moving features from the monolith to the AI Gateway using the prompt library. See #432594 (closed)

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

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports