Skip to content

feat: AI Assisted Code Suggestion extension

What does this MR do and why?

feat: AI Assisted Code Suggestion extension

  • default disabled

Related #108 (closed)

Next steps:

  1. Refactor Makefile Code suggestions: deduplicate code in Makefile (#139 - closed)

  2. Move to a feature flag to be disabled by default Authentication : Code suggestions Web IDE: feat... (gitlab#404428 - closed)

  3. Check CORS issues Support cross-origin request (CORS) for API (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#52 - closed)

  4. A few dozen UX design issues

  5. Auth issues

Screenshots or screen recordings

image

How to set up and validate locally

!!!! Use Incognito mode in Chrome each time !!!

  1. Use a local code suggestions proxy https://gitlab.com/a_akgun/code-suggestions-proxy, using your own gitlab.com personal access token for a gitlab-org member:
  2. Here's the configuration
@@ -1,4 +1,3 @@
 export const CONFIG_NAMESPACE = 'gitlab';
 export const AI_ASSISTED_CODE_SUGGESTIONS_CONFIG_NAMESPACE = 'gitlab.aiAssistedCodeSuggestions';
-export const AI_ASSISTED_CODE_SUGGESTIONS_API_URL =
-  'https://codesuggestions.gitlab.com/v1/completions';
+export const AI_ASSISTED_CODE_SUGGESTIONS_API_URL = 'http://127.0.0.1:8037/v1/completions';
  1. Run npm run start for the code suggestions
  2. Run yarn start:example for the web ide.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alper Akgun

Merge request reports