Commit 774ced8
feat: Add AI Settings admin page with Local LLM support and connection testing
- Add AI Settings page at /settings/ai with provider selection (Claude, OpenAI, Local LLM)
- Add LOCAL_LLM enum to AIProvider
- Add localLlmUrl and localLlmContextSize fields to OrganizationConfiguration
- Add Test Connection button for Local LLM that validates:
- URL parsing and format
- DNS resolution with resolved IP display
- TCP connection to host:port
- TLS handshake (for HTTPS)
- HTTP response and endpoint validation
- Checks if response looks like an LLM API (JSON with expected fields)
- Shows actual response preview from the server
- Add Test Key button for Claude and OpenAI that:
- Sends a real test request to verify API key works
- Shows step-by-step diagnostics
- Displays the AI response on success
- Shows detailed error info and suggestions on failure
- Fix GPT component to use styled textarea instead of missing Textarea export
- Fix response interceptor handling in AI Settings page
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b03edae commit 774ced8
File tree
7 files changed
+1529
-114
lines changed- app
- client/src
- ce/api
- ee/components/editorComponents/GPT
- pages/AdminSettings/AI
- server/appsmith-server/src/main/java/com/appsmith/server
- controllers/ce
- domains
- ce
- dtos
7 files changed
+1529
-114
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
88 | 110 | | |
89 | 111 | | |
90 | 112 | | |
Lines changed: 40 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
95 | 117 | | |
96 | 118 | | |
97 | 119 | | |
98 | | - | |
99 | 120 | | |
100 | | - | |
| 121 | + | |
101 | 122 | | |
| 123 | + | |
102 | 124 | | |
103 | | - | |
104 | 125 | | |
| 126 | + | |
105 | 127 | | |
106 | 128 | | |
107 | 129 | | |
| |||
110 | 132 | | |
111 | 133 | | |
112 | 134 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
118 | 143 | | |
119 | 144 | | |
120 | 145 | | |
| |||
166 | 191 | | |
167 | 192 | | |
168 | 193 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 194 | + | |
| 195 | + | |
175 | 196 | | |
176 | 197 | | |
177 | 198 | | |
178 | 199 | | |
179 | 200 | | |
180 | 201 | | |
181 | 202 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 203 | + | |
| 204 | + | |
185 | 205 | | |
186 | 206 | | |
| 207 | + | |
187 | 208 | | |
188 | 209 | | |
| 210 | + | |
189 | 211 | | |
190 | 212 | | |
191 | | - | |
192 | 213 | | |
193 | 214 | | |
194 | 215 | | |
| |||
0 commit comments