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
Refactor AI documentation structure and add model configuration guide
Reorganized the AI documentation to improve clarity and navigation. Converted numbered section headings to unnumbered format for better consistency with documentation standards. Added comprehensive guidance for configuring multiple models within a single endpoint, including a practical JSON configuration example for Anthropic endpoints that demonstrates how to set up model selection alongside the primary model setting.
* Documentation structure
* AI endpoint configuration guide
**Generated by CodeLite**
Signed-off-by: Eran Ifrah <eran@codelite.org>
Copy file name to clipboardExpand all lines: docs/docs/AI/ai.md
+40-8Lines changed: 40 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ CodeLite 18.2.0 ships with a built-in chat interface that connects to any langua
10
10
11
11
---
12
12
13
-
## 1. Add an LLM Endpoint
13
+
## Add an LLM Endpoint
14
+
15
+
### New Endpoint
14
16
15
17
- Open **AI → Add New Endpoint** from the main menu.
16
18
@@ -23,9 +25,39 @@ CodeLite 18.2.0 ships with a built-in chat interface that connects to any langua
23
25
24
26
- Test the endpoint: press ++ctrl+shift+h++ to open the chat box and send a short prompt (e.g., "Hello").
25
27
28
+
### Configuring Multiple Models for a Single Endpoint
29
+
30
+
Some endpoints support multiple models. For example, when working with Anthropic, you can choose between Haiku, Sonnet, or Opus. CodeLite allows you to configure multiple models for a single endpoint and quickly switch between them from the chat box UI.
31
+
32
+
To add multiple models:
33
+
34
+
- Open the AI settings file from the main menu bar: **AI** → **Open Setting File**
35
+
- Locate the endpoint section you want to modify
36
+
- If you do not already have a `models` entry, add one so it resembles the following:
37
+
38
+
```json
39
+
"https://api.anthropic.com": {
40
+
"active": true,
41
+
"context_size": 200000,
42
+
"http_headers": {
43
+
"x-api-key": "${ANTHROPIC_KEY}"
44
+
},
45
+
"max_tokens": 64000,
46
+
"model": "claude-sonnet-4-5",
47
+
"models": [
48
+
"claude-sonnet-4-5",
49
+
"claude-haiku-4-5",
50
+
"claude-opus-4-5"
51
+
],
52
+
"type": "anthropic"
53
+
},
54
+
```
55
+
56
+
- Save the file. The UI will update automatically.
57
+
26
58
---
27
59
28
-
## 2. The Chat Box
60
+
## The Chat Box
29
61
30
62
Open the chat box at any time with ++ctrl+shift+h++. The window can be used for casual questions, code-related queries,
31
63
or to instruct the model to perform tasks.
@@ -34,7 +66,7 @@ or to instruct the model to perform tasks.
34
66
35
67
---
36
68
37
-
## 3. Built-in Model Tools
69
+
## Built-in Model Tools
38
70
39
71
CodeLite exposes the following built-in tools for the model:
40
72
@@ -102,7 +134,7 @@ The model will automatically call `ReadCompilerOutput`, fetch the log, and then
102
134
103
135
---
104
136
105
-
## 4. External MCP Servers
137
+
## External MCP Servers
106
138
107
139
In addition to the built-in tools, CodeLite supports external MCP (Model Context Protocol) servers. You can integrate two types of external servers:
108
140
@@ -120,7 +152,7 @@ To add an external MCP server, navigate to the menu bar and select one of the fo
120
152
121
153
---
122
154
123
-
## 5. Placeholders
155
+
## Placeholders
124
156
125
157
CodeLite provides a comprehensive set of placeholders that can be utilized within prompts. When you type `{{` in the chat box,
126
158
a completion menu will appear displaying all available placeholders.
@@ -137,7 +169,7 @@ a completion menu will appear displaying all available placeholders.
137
169
138
170
---
139
171
140
-
## 6. CodeLite Prompt Store
172
+
## CodeLite Prompt Store
141
173
142
174
### Overview
143
175
@@ -156,7 +188,7 @@ These prompts can be used from the Chat-Box "Options" drop down menu.
156
188
157
189
---
158
190
159
-
## 7. AI-Powered IDE Features
191
+
## AI-Powered IDE Features
160
192
161
193
### Git Commit Message
162
194
@@ -172,7 +204,7 @@ Place the cursor inside a function, press ++ctrl+shift+m++, and the model writes
172
204
173
205
---
174
206
175
-
## 8. Getting Help
207
+
## Getting Help
176
208
177
209
- Open the chat box (++ctrl+shift+h++) and ask any question or ask the model to perform tasks for you.
178
210
- For endpoint-specific issues, use **AI → Settings** to view or edit the stored URLs and tokens.
0 commit comments