Commit 56e2475
feat: Auto fetch models from listAvailableModels API (#2171)
* Updating the model of listAvailableModels (#2064)
* fix(amazonq): fix flickering issue for model selection dropdown and agenticCoding toggle (#2065)
* fix(amazonq): fix flickering issue for modelId and agenticCoding
* fix(amazonq): Fixing flaky tests
* feat(amazonq): Fetching models from backend and adding cache implementation. (#2075)
* fix: removing and refactoring legacy code before implementing model selection
* feat(amazonq): adding cache implementation and fetching models from listAvailableModels api
* feat(amazonq): adding selected model in error case
* feat(amazonq): adding test cases
* fix: addressing comments
* fix: fixing test cases and adding modelName to models
* fix: minor edits
* fix: minor edits
* fix: minor modifications in logs
* fix: adding default model if api throws any errors
* fix: refactoring code
* fix: Improve model selection fallback logic when user's preferred model is unavailable (#2089)
* fix: if user preferred model does not exist, fall back to default model
* fix: minor test changes
* fix: to support backward compatibility for vs and eclipse, adding back modelSelection in chat-client (#2095)
* fix: check available models from backend before selecting default model from fallback models (#2102)
* feat(amazonq): use model display names (#2123)
* fix: cached model list should be invalidated on sign out (#2131)
* fix: cached model list should be invalidated on sign out
* fix test
* avoid throwing error
* fix: adding default modelId and setting cache ttl to 30 minutes (#2161)
* fix: adding defaultmodelId and setting cache ttl to 30 minutes
* fix: fixing tests
* fix: updating comments
* Updating the model of listAvailableModels (#2064)
* fix(amazonq): fix flickering issue for model selection dropdown and agenticCoding toggle (#2065)
* fix(amazonq): fix flickering issue for modelId and agenticCoding
* fix(amazonq): Fixing flaky tests
* feat(amazonq): Fetching models from backend and adding cache implementation. (#2075)
* fix: removing and refactoring legacy code before implementing model selection
* feat(amazonq): adding cache implementation and fetching models from listAvailableModels api
* feat(amazonq): adding selected model in error case
* feat(amazonq): adding test cases
* fix: addressing comments
* fix: fixing test cases and adding modelName to models
* fix: minor edits
* fix: minor edits
* fix: minor modifications in logs
* fix: adding default model if api throws any errors
* fix: refactoring code
* fix: Improve model selection fallback logic when user's preferred model is unavailable (#2089)
* fix: if user preferred model does not exist, fall back to default model
* fix: minor test changes
* fix: to support backward compatibility for vs and eclipse, adding back modelSelection in chat-client (#2095)
* fix: check available models from backend before selecting default model from fallback models (#2102)
* feat(amazonq): use model display names (#2123)
* fix: cached model list should be invalidated on sign out (#2131)
* fix: cached model list should be invalidated on sign out
* fix test
* avoid throwing error
* fix: adding default modelId and setting cache ttl to 30 minutes (#2161)
* fix: adding defaultmodelId and setting cache ttl to 30 minutes
* fix: fixing tests
* fix: updating comments
* fix: lint issue while resolving merge conflicts
---------
Co-authored-by: Tai Lai <[email protected]>1 parent 999f815 commit 56e2475
File tree
21 files changed
+555
-325
lines changed- chat-client/src/client
- tabs
- texts
- server/aws-lsp-codewhisperer/src
- client
- sigv4
- token
- language-server/agenticChat
- constants
- tools/chatDb
- utils
21 files changed
+555
-325
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| |||
264 | 263 | | |
265 | 264 | | |
266 | 265 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 266 | | |
282 | 267 | | |
283 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| |||
414 | 423 | | |
415 | 424 | | |
416 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
417 | 432 | | |
418 | 433 | | |
419 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 95 | + | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 55 | + | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
9 | 3 | | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 7 | | |
18 | 8 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 9 | | |
59 | 10 | | |
60 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3622 | 3622 | | |
3623 | 3623 | | |
3624 | 3624 | | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
3625 | 3629 | | |
3626 | 3630 | | |
3627 | 3631 | | |
| |||
3955 | 3959 | | |
3956 | 3960 | | |
3957 | 3961 | | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
3958 | 3966 | | |
3959 | 3967 | | |
3960 | 3968 | | |
| |||
3972 | 3980 | | |
3973 | 3981 | | |
3974 | 3982 | | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
3975 | 3990 | | |
3976 | 3991 | | |
3977 | 3992 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1132 | 1133 | | |
1133 | 1134 | | |
1134 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1135 | 1140 | | |
1136 | 1141 | | |
1137 | 1142 | | |
| |||
1240 | 1245 | | |
1241 | 1246 | | |
1242 | 1247 | | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
1243 | 1252 | | |
1244 | 1253 | | |
1245 | 1254 | | |
| |||
1250 | 1259 | | |
1251 | 1260 | | |
1252 | 1261 | | |
| 1262 | + | |
1253 | 1263 | | |
1254 | 1264 | | |
1255 | 1265 | | |
| |||
0 commit comments