Skip to content

Commit ace121c

Browse files
committed
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>
1 parent ba5f634 commit ace121c

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

docs/docs/AI/ai.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ CodeLite 18.2.0 ships with a built-in chat interface that connects to any langua
1010

1111
---
1212

13-
## 1. Add an LLM Endpoint
13+
## Add an LLM Endpoint
14+
15+
### New Endpoint
1416

1517
- Open **AI → Add New Endpoint** from the main menu.
1618

@@ -23,9 +25,39 @@ CodeLite 18.2.0 ships with a built-in chat interface that connects to any langua
2325

2426
- Test the endpoint: press ++ctrl+shift+h++ to open the chat box and send a short prompt (e.g., "Hello").
2527

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+
2658
---
2759

28-
## 2. The Chat Box
60+
## The Chat Box
2961

3062
Open the chat box at any time with ++ctrl+shift+h++. The window can be used for casual questions, code-related queries,
3163
or to instruct the model to perform tasks.
@@ -34,7 +66,7 @@ or to instruct the model to perform tasks.
3466

3567
---
3668

37-
## 3. Built-in Model Tools
69+
## Built-in Model Tools
3870

3971
CodeLite exposes the following built-in tools for the model:
4072

@@ -102,7 +134,7 @@ The model will automatically call `ReadCompilerOutput`, fetch the log, and then
102134

103135
---
104136

105-
## 4. External MCP Servers
137+
## External MCP Servers
106138

107139
In addition to the built-in tools, CodeLite supports external MCP (Model Context Protocol) servers. You can integrate two types of external servers:
108140

@@ -120,7 +152,7 @@ To add an external MCP server, navigate to the menu bar and select one of the fo
120152

121153
---
122154

123-
## 5. Placeholders
155+
## Placeholders
124156

125157
CodeLite provides a comprehensive set of placeholders that can be utilized within prompts. When you type `{{` in the chat box,
126158
a completion menu will appear displaying all available placeholders.
@@ -137,7 +169,7 @@ a completion menu will appear displaying all available placeholders.
137169

138170
---
139171

140-
## 6. CodeLite Prompt Store
172+
## CodeLite Prompt Store
141173

142174
### Overview
143175

@@ -156,7 +188,7 @@ These prompts can be used from the Chat-Box "Options" drop down menu.
156188

157189
---
158190

159-
## 7. AI-Powered IDE Features
191+
## AI-Powered IDE Features
160192

161193
### Git Commit Message
162194

@@ -172,7 +204,7 @@ Place the cursor inside a function, press ++ctrl+shift+m++, and the model writes
172204

173205
---
174206

175-
## 8. Getting Help
207+
## Getting Help
176208

177209
- Open the chat box (++ctrl+shift+h++) and ask any question or ask the model to perform tasks for you.
178210
- For endpoint-specific issues, use **AI → Settings** to view or edit the stored URLs and tokens.

0 commit comments

Comments
 (0)