Commit 300ed29
Feat/support hybrid model selection rebase (#80)
* feat(hybrid): add Hybrid provider option to ProviderDropdown (UI scaffold)
Adds a 4th "Hybrid" option to the provider dropdown with a purple
"Mixed" badge and dark-mode fix, plus a Settings2 configure button
on the selected hybrid row. Passes new `defaultBackend` and
`backendLocked` (BrainForge) fields from `/api/config` personas
through AppConfigContext for the upcoming mapping UI.
Backend needs:
- `default_backend` + `brainforge` flags on persona config
- accept "hybrid" on POST /switch-provider
- GET/POST /hybrid-config for { orchestrator, personas{} } map
- per-persona inference routing; BrainForge hard-pinned
* added per-user llm backend selection with uniform (all same provider) and hybird (different llm per persona/orchestrator) modes.
* Enhance ChatPage with hybrid LLM configuration support
- Added HybridConfigModal for configuring hybrid LLM settings.
- Refactored state management to support both uniform and hybrid modes.
-Each adviosr can now have its own model
* added filter for avaliable backends with health status check set to ping every 300 seconds.
* added unit tests for the available backends filter and health check.
* Pending changes to build backend the menus will be moved to the welcome screens and settigns pages once merges are completed.
* fixed bootstrap.py import causing test_available_backends failure.
* added conftest.py to simplify mock module imports and unit tests for LLM provider config.
* restored needs_clarification_improved function lost during rebase.
* Enhance SettingsModal with user profile and account management features
- Added functionality for updating user profile information (first name, last name).
- Implemented password change and account deletion processes with confirmation.
- Improved modal behavior to prevent accidental closure during text selection.
- Updated ChatPage to integrate new SettingsModal features, including user update and sign-out callbacks.
* fix stubbing issue in conftest.py from rebase.
* fix backend config values to lock brainforge models on frontend and prevent their underlying models from being changed.
* added admin-level enabled toggle to each provider and set default backend dynamically.
* replaced frontend hardcoded gemini fallback with dynamic defaults.
* fallback to default_backend when hybrid mode has no overrides.
* add test case for gemini missing.
* added configurable default_backend parameter to config.yaml.
* Fixed the black on black text and added the default option
---------
Co-authored-by: Neon:ryan <ryan@neon.ai>1 parent ef41a67 commit 300ed29
25 files changed
Lines changed: 1587 additions & 217 deletions
File tree
- multi_llm_chatbot_backend/app
- api/routes
- core
- llm
- models
- tests/unit
- phd-advisor-frontend/src
- components
- contexts
- pages
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 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 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
27 | 62 | | |
28 | 63 | | |
29 | 64 | | |
| |||
81 | 116 | | |
82 | 117 | | |
83 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
84 | 124 | | |
85 | 125 | | |
86 | 126 | | |
| |||
107 | 147 | | |
108 | 148 | | |
109 | 149 | | |
110 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
111 | 153 | | |
112 | 154 | | |
113 | 155 | | |
| |||
123 | 165 | | |
124 | 166 | | |
125 | 167 | | |
126 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
127 | 171 | | |
128 | 172 | | |
129 | 173 | | |
| |||
164 | 208 | | |
165 | 209 | | |
166 | 210 | | |
| 211 | + | |
167 | 212 | | |
168 | 213 | | |
169 | 214 | | |
| |||
210 | 255 | | |
211 | 256 | | |
212 | 257 | | |
| 258 | + | |
213 | 259 | | |
214 | 260 | | |
215 | 261 | | |
| 262 | + | |
216 | 263 | | |
217 | 264 | | |
218 | 265 | | |
| |||
390 | 437 | | |
391 | 438 | | |
392 | 439 | | |
393 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
394 | 444 | | |
395 | 445 | | |
396 | 446 | | |
| |||
408 | 458 | | |
409 | 459 | | |
410 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
411 | 464 | | |
412 | 465 | | |
413 | 466 | | |
414 | 467 | | |
415 | | - | |
| 468 | + | |
| 469 | + | |
416 | 470 | | |
417 | 471 | | |
418 | 472 | | |
| |||
479 | 533 | | |
480 | 534 | | |
481 | 535 | | |
482 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
483 | 540 | | |
484 | 541 | | |
485 | 542 | | |
| |||
520 | 577 | | |
521 | 578 | | |
522 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
523 | 583 | | |
524 | 584 | | |
525 | 585 | | |
526 | | - | |
| 586 | + | |
| 587 | + | |
527 | 588 | | |
528 | 589 | | |
529 | 590 | | |
| |||
600 | 661 | | |
601 | 662 | | |
602 | 663 | | |
603 | | - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
604 | 668 | | |
605 | 669 | | |
606 | 670 | | |
607 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
608 | 675 | | |
609 | 676 | | |
610 | 677 | | |
611 | | - | |
| 678 | + | |
| 679 | + | |
612 | 680 | | |
613 | 681 | | |
614 | 682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
17 | | - | |
18 | | - | |
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 | 14 | | |
50 | 15 | | |
51 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
52 | 21 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 22 | + | |
| 23 | + | |
59 | 24 | | |
60 | 25 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 26 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 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 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
101 | 68 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 69 | | |
106 | | - | |
107 | | - | |
| 70 | + | |
| 71 | + | |
108 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
290 | 293 | | |
291 | 294 | | |
292 | 295 | | |
| 296 | + | |
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
| 301 | + | |
297 | 302 | | |
298 | 303 | | |
299 | 304 | | |
| |||
0 commit comments