Skip to content
代码片段 群组 项目
未验证 提交 bdefd4ab 编辑于 作者: Jordan Janes's avatar Jordan Janes 提交者: GitLab
浏览文件

Apply 1 suggestion(s) to 1 file(s)

上级 90da530f
No related branches found
No related tags found
无相关合并请求
......@@ -80,8 +80,11 @@ To use Code Suggestions:
1. Describe the requirements in natural language.
Code Suggestions generates functions and code snippets based on the context provided.
1. To accept a suggestion, press <kbd>Tab</kbd>. To reject a suggestion, press <kbd>Esc</kbd>.
1. To ignore a suggestion, keep typing as you usually would.
1. When you receive a suggestion, you can do any of the following:
- To accept a suggestion, press <kbd>Tab</kbd>.
- To accept a partial suggestion, press either <kbd>Control</kbd>+<kbd>Right arrow</kbd> or <kbd>Command</kbd>+<kbd>Right arrow</kbd>.
- To reject a suggestion, press <kbd>Esc</kbd>.
- To ignore a suggestion, keep typing as you usually would.
AI is non-deterministic, so you may not get the same suggestion every time with the same input.
To generate quality code, write clear, descriptive, specific tasks.
......@@ -256,12 +259,12 @@ When using Code Suggestions, [code review best practice](../../../../development
Code Suggestions is powered by a generative AI model.
- For code completion, suggestions are usually low latency and take less than one second.
- For code generation, algorithms or large code blocks might take more than five seconds to generate.
Your personal access token enables a secure API connection to GitLab.com or to your GitLab instance.
This API connection securely transmits a context window from your IDE/editor to the [GitLab AI Gateway](https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist), a GitLab hosted service. The [gateway](../../../../development/ai_architecture.md) calls the large language model APIs, and then the generated suggestion is transmitted back to your IDE/editor.
- For code completion, suggestions are usually low latency.
- For code generation, algorithms or large code blocks might take more than 10 seconds to generate.
### Streaming
Streaming of Code Generation responses is supported in VS Code, leading to faster average response times.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册