Skip to content

Add Codestral rails aigw support

Tian Gao requested to merge 480646-CodeStral_Rail_Aigw_Support into master

What does this MR do and why?

issue: #480646 (closed) We added support for Codestral-on-Vertex on the AI Gateway: Add Codestral on Vertex support for code comple... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#564 - closed). We also added a feature flag (use_codestral_for_code_completions) that would toggle the use of Codestral-on-Vertex for direct connections requests (from the IDE to AI Gateway): Add Codestral-on-Vertex model details to /code_... (#479939 - closed).

We need to make sure that the Rails -> AIGW code completion requests specifies Codestral-on-Vertex when use_codestral_for_code_completions is enabled.

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

  • Follow the steps here to setup code completion in VS code
  • Disable direct connection follow the instruction here Screenshot_2024-09-15_at_10.27.26_PM
  • start type to trigger code completion Screenshot_2024-09-12_at_8.46.26_AM
  • check logs from AIGW side Screenshot_2024-09-11_at_10.14.59_PM Screenshot_2024-09-11_at_10.14.49_PM

We can see codestral model details are in the payload now.

Related to #480646 (closed)

Edited by Tian Gao

Merge request reports

Loading