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:
-
Refactor Makefile Code suggestions: deduplicate code in Makefile (#139 - closed)
-
Move to a feature flag to be disabled by default Authentication : Code suggestions Web IDE: feat... (gitlab#404428 - closed)
-
Check CORS issues Support cross-origin request (CORS) for API (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#52 - closed)
-
A few dozen UX design issues
-
Auth issues
- Web IDE token creation and send Code suggestions: Get a token and send it to mo... (#141 - closed)
- (This) Client side (frontend) authentication Authentication: Authenticate Code Suggestions ... (#140 - closed)
- v3 backend for the model gateway Authentication: Authorize using stateless JWT... (gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#56 - closed)
- GitLab API endpoint to create an auth token for code suggestions Authentication: Create endpoint to issue access... (gitlab#404427 - closed)
Screenshots or screen recordings
How to set up and validate locally
!!!! Use Incognito mode in Chrome each time !!!
- 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: - 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';
- Run
npm run start
for the code suggestions - 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alper Akgun