Commit ccacbb8
committed
fix(webapp,llm-model-catalog): scope model sparklines to project and add 1h cache alias
Scope getModelUsageSparklines by project_id alongside environment_id so it
matches the other project-scoped queries and lets ClickHouse use the
organization/project/environment key prefix. Add input_cache_creation_1h to
the cache-creation price aliases so a model that defines only the 1h key is
not dropped to the input price (no current model is affected; the base/5m
alias still resolves first).1 parent 7338f66 commit ccacbb8
3 files changed
Lines changed: 7 additions & 1 deletion
File tree
- apps/webapp/app
- presenters/v3
- routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.models._index
- internal-packages/llm-model-catalog/src
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| 727 | + | |
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
| |||
758 | 759 | | |
759 | 760 | | |
760 | 761 | | |
761 | | - | |
| 762 | + | |
| 763 | + | |
762 | 764 | | |
763 | 765 | | |
764 | 766 | | |
765 | 767 | | |
766 | 768 | | |
767 | 769 | | |
768 | 770 | | |
| 771 | + | |
769 | 772 | | |
770 | 773 | | |
771 | 774 | | |
| |||
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
| 781 | + | |
778 | 782 | | |
779 | 783 | | |
780 | 784 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
0 commit comments