Skip to content

Commit b4e4a1b

Browse files
committed
Add details
1 parent efa44ab commit b4e4a1b

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

docs/cody/capabilities/chat.mdx

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,49 @@ Let's learn how Cody chat works with different IDE extensions (VS Code, JetBrain
2323
<Tabs>
2424
<Tab title="VS Code">
2525

26-
## Prerequisites
26+
## Prerequisites
2727

2828
To use Cody's chat in VS Code, you'll need to have the following:
2929

3030
- A Free Sourcegraph.com or a Sourcegraph Enterprise account
3131
- Cody for VS Code editor extension installed and activated
3232

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.
42+
43+
<video width="1920" height="1080" loop playsInline controls style={{ width: '100%', height: 'auto', aspectRatio: '1920 / 1080' }}>
44+
<source src="https://storage.googleapis.com/sourcegraph-assets/Docs/Media/chat-interface-0724.mp4" type="video/mp4" />
45+
</video>
46+
47+
## Chat history
48+
49+
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+
<Callout type="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+
3369
## Ask Cody your first question
3470

3571
Let's use Cody chat interface to answer your first question.

0 commit comments

Comments
 (0)