Commit f014058
feat(local_ai): MVP model lockdown — lock selection to 2-4 GB tier (tinyhumansai#573) (tinyhumansai#588)
* feat(local_ai): add MVP tier ceiling and cap model recommendation (tinyhumansai#573)
Introduce MVP_MAX_TIER constant (Ram2To4Gb), is_mvp_allowed() gate,
mvp_presets() filter, and cap recommend_tier() so auto-provisioning
never selects a model above the MVP ceiling regardless of device RAM.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(local_ai): enforce MVP model allowlists on resolved IDs (tinyhumansai#573)
Add per-category allowlists (chat, vision, embedding) so that
effective_*_model_id() silently redirects any non-MVP model to the
default. Prevents config-file edits from bypassing the 2-4 GB tier
restriction.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(local_ai): reject non-MVP tiers in RPC and clamp at bootstrap (tinyhumansai#573)
apply_preset handler now returns an error for tiers above the MVP
ceiling. Bootstrap clamps any existing out-of-range tier selection
down to the recommended (capped) preset on startup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(ui): lock model tier selection and show full roadmap (tinyhumansai#573)
Replace clickable tier buttons with static cards. Active tier shows
"Active" badge; locked tiers show "Coming soon" with reduced opacity.
Add MVP info banner. Fix download size to 1 decimal place.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(local_ai): resolve CI failures — fmt, unused props, dead code (tinyhumansai#573)
Apply cargo fmt to single-element array constants. Remove unused
isApplyingPreset/onApplyPreset props and applyPreset function from
the settings panel since tier switching is disabled for MVP.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* style: apply Prettier formatting to settings panels (tinyhumansai#573)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 098206c commit f014058
6 files changed
Lines changed: 217 additions & 82 deletions
File tree
- app/src/components/settings/panels
- local-model
- src/openhuman/local_ai
- service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 90 | | |
110 | 91 | | |
111 | 92 | | |
| |||
152 | 133 | | |
153 | 134 | | |
154 | 135 | | |
155 | | - | |
156 | | - | |
157 | 136 | | |
158 | 137 | | |
159 | 138 | | |
| |||
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
| 72 | + | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 76 | + | |
80 | 77 | | |
81 | 78 | | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
97 | 94 | | |
98 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
| 107 | + | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| 15 | + | |
| 16 | + | |
| 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 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
10 | 71 | | |
11 | 72 | | |
12 | 73 | | |
13 | 74 | | |
14 | 75 | | |
15 | 76 | | |
16 | 77 | | |
17 | | - | |
| 78 | + | |
18 | 79 | | |
19 | 80 | | |
20 | 81 | | |
21 | 82 | | |
22 | 83 | | |
23 | 84 | | |
24 | 85 | | |
25 | | - | |
| 86 | + | |
26 | 87 | | |
27 | | - | |
| 88 | + | |
28 | 89 | | |
29 | 90 | | |
30 | 91 | | |
| |||
33 | 94 | | |
34 | 95 | | |
35 | 96 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
40 | 103 | | |
41 | 104 | | |
42 | 105 | | |
43 | 106 | | |
44 | 107 | | |
45 | | - | |
| 108 | + | |
46 | 109 | | |
47 | | - | |
| 110 | + | |
48 | 111 | | |
49 | 112 | | |
50 | 113 | | |
| |||
88 | 151 | | |
89 | 152 | | |
90 | 153 | | |
91 | | - | |
| 154 | + | |
92 | 155 | | |
93 | 156 | | |
94 | | - | |
| 157 | + | |
95 | 158 | | |
96 | 159 | | |
97 | | - | |
| 160 | + | |
98 | 161 | | |
99 | 162 | | |
100 | 163 | | |
101 | | - | |
| 164 | + | |
102 | 165 | | |
103 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
104 | 174 | | |
105 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
106 | 182 | | |
107 | 183 | | |
108 | 184 | | |
| |||
111 | 187 | | |
112 | 188 | | |
113 | 189 | | |
| 190 | + | |
| 191 | + | |
114 | 192 | | |
115 | | - | |
| 193 | + | |
116 | 194 | | |
117 | | - | |
| 195 | + | |
118 | 196 | | |
119 | 197 | | |
120 | 198 | | |
| |||
0 commit comments