Repository navigation
Commit a1695cf
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 34d8820 commit a1695cf
12 files changed
Lines changed: 881 additions & 1124 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 | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 460 | + | |
| 461 | + | |
466 | 462 | | |
467 | 463 | | |
468 | 464 | | |
| |||
0 commit comments