You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cody/capabilities/chat.mdx
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,49 @@ Let's learn how Cody chat works with different IDE extensions (VS Code, JetBrain
23
23
<Tabs>
24
24
<Tabtitle="VS Code">
25
25
26
-
## Prerequisites
26
+
## Prerequisites
27
27
28
28
To use Cody's chat in VS Code, you'll need to have the following:
29
29
30
30
- A Free Sourcegraph.com or a Sourcegraph Enterprise account
31
31
- Cody for VS Code editor extension installed and activated
32
32
33
+
## Chat interface
34
+
35
+
Cody chat in VS Code is available in a unified interface opened right next to your code. Once connected to Sourcegraph, a new chat input field is opened with a default `@-mention`[context chips](#context-retrieval).
36
+
37
+
All your previous and existing chats are stored for later use and can be accessed via the **History** icon from the top menu. You can download them to share or use later in a `.json` file or delete them altogether.
38
+
39
+
The chat interface is designed intuitively. Your very first chat input lives at the top of the panel, and the first message in any chat log will stay pinned to the top of the chat. After your first message, the chat input window moves to the bottom of the sidebar.
40
+
41
+
Since your first message to Cody anchors the conversation, you can return to the top chat box anytime, edit your prompt, or re-run it using a different LLM model.
A chat history icon at the top of your chat input window allows you to navigate between chats (and search chats) without opening the Cody sidebar.
50
+
51
+
## LLM selection
52
+
53
+
<Callouttype="note"> You need to be a Cody Free or Pro user to have multi-model selection capability. Enterprise users with the new [model configuration](/cody/clients/model-configuration) can use the LLM selection dropdown to choose a chat model.</Callout>
54
+
55
+
For LLM selection for chat:
56
+
57
+
- Open chat or toggle between editor and chat (Opt+L/Alt+L)
58
+
- Click on the model selector (which by default indicates Claude 3.5 Sonnet)
59
+
- See the selection of models and click the model you desire. This model will now be the default model going forward on any new chats
60
+
61
+
For LLM selection for inline edit:
62
+
63
+
- On any file, select some code and a right-click
64
+
- Select Cody->Edit Code (optionally, you can do this with Opt+K/Alt+K)
65
+
- Select the default model available (this is Claude 3 Opus)
66
+
- See the selection of models and click the model you desire. This model will now be the default model going forward on any new edits
67
+
68
+
33
69
## Ask Cody your first question
34
70
35
71
Let's use Cody chat interface to answer your first question.
0 commit comments