Repository navigation
Commit b9401a1
committed
feat(fireworks): fetch pricing from the API and drop the hardcoded catalog
Fireworks model metadata and pricing now come entirely from the API:
- Model list and capabilities: GET /inference/v1/models.
- Pricing: GET /v1/accounts/{account_id}/serverlessModels, with the
account id resolved via GET /v1/accounts. The RPC has no API reference
page, but its pricing field is documented in the Model schema on the
List/Get Model docs (serverlessModes[].skuInfos: "only populated by
ListServerlessModels"). The default mode prices the model id; fast modes
price their usageIdentifier router id; priority tier is skipped.
- Pricing is best-effort: on any failure the model list still loads and
cost is left unknown. Models without a price are kept.
- Embedding/reranker models are filtered by kind, since they report
supports_chat: true.
Removes the hardcoded fireworksModels catalog and FireworksModelId type.
The settings picker shows only API-fetched models (no static fallback),
and the handler/useSelectedModel read model info from the fetched list.1 parent 2a21870 commit b9401a1
12 files changed
Lines changed: 878 additions & 1118 deletions
File tree
- packages/types/src
- __tests__
- providers
- src/api/providers
- __tests__
- fetchers
- __tests__
- webview-ui/src/components
- settings
- providers
- __tests__
- ui/hooks
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
| |||
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
449 | 448 | | |
450 | 449 | | |
451 | 450 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 451 | + | |
| 452 | + | |
457 | 453 | | |
458 | 454 | | |
459 | 455 | | |
| |||
0 commit comments