@namzu/sdk 73.0.0 → 74.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/README.md +34 -34
- package/dist/authorization/protected-paths.d.ts +7 -0
- package/dist/authorization/protected-paths.d.ts.map +1 -1
- package/dist/authorization/protected-paths.js +7 -0
- package/dist/authorization/protected-paths.js.map +1 -1
- package/dist/authorization/readonly-commands.d.ts +23 -0
- package/dist/authorization/readonly-commands.d.ts.map +1 -1
- package/dist/authorization/readonly-commands.js +89 -3
- package/dist/authorization/readonly-commands.js.map +1 -1
- package/dist/authorization/shell-paths.d.ts +8 -0
- package/dist/authorization/shell-paths.d.ts.map +1 -1
- package/dist/authorization/shell-paths.js +125 -2
- package/dist/authorization/shell-paths.js.map +1 -1
- package/dist/bridge/acp/permission.d.ts +6 -0
- package/dist/bridge/acp/permission.d.ts.map +1 -1
- package/dist/bridge/acp/permission.js.map +1 -1
- package/dist/bridge/acp/server.d.ts.map +1 -1
- package/dist/bridge/acp/server.js +21 -3
- package/dist/bridge/acp/server.js.map +1 -1
- package/dist/compaction/context-window.d.ts.map +1 -1
- package/dist/compaction/context-window.js +11 -0
- package/dist/compaction/context-window.js.map +1 -1
- package/dist/compaction/manual.d.ts.map +1 -1
- package/dist/compaction/manual.js +15 -8
- package/dist/compaction/manual.js.map +1 -1
- package/dist/compaction/plan.d.ts +2 -1
- package/dist/compaction/plan.d.ts.map +1 -1
- package/dist/compaction/plan.js +6 -5
- package/dist/compaction/plan.js.map +1 -1
- package/dist/compaction/retained-images.d.ts +16 -0
- package/dist/compaction/retained-images.d.ts.map +1 -0
- package/dist/compaction/retained-images.js +113 -0
- package/dist/compaction/retained-images.js.map +1 -0
- package/dist/compaction/token-estimate.d.ts +8 -3
- package/dist/compaction/token-estimate.d.ts.map +1 -1
- package/dist/compaction/token-estimate.js +76 -8
- package/dist/compaction/token-estimate.js.map +1 -1
- package/dist/compaction/tool-result-editing.d.ts.map +1 -1
- package/dist/compaction/tool-result-editing.js +15 -8
- package/dist/compaction/tool-result-editing.js.map +1 -1
- package/dist/config/runtime.d.ts +3 -3
- package/dist/constants/acp/index.d.ts +2 -0
- package/dist/constants/acp/index.d.ts.map +1 -1
- package/dist/constants/acp/index.js +2 -0
- package/dist/constants/acp/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/manager/session/turn-recorder.d.ts +1 -0
- package/dist/manager/session/turn-recorder.d.ts.map +1 -1
- package/dist/manager/session/turn-recorder.js +31 -7
- package/dist/manager/session/turn-recorder.js.map +1 -1
- package/dist/pricing/catalogue.generated.d.ts.map +1 -1
- package/dist/pricing/catalogue.generated.js +353 -21
- package/dist/pricing/catalogue.generated.js.map +1 -1
- package/dist/provider/attribution.js +1 -1
- package/dist/provider/attribution.js.map +1 -1
- package/dist/public-runtime.d.ts +5 -2
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +8 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/rag/embedding.d.ts +5 -1
- package/dist/rag/embedding.d.ts.map +1 -1
- package/dist/rag/embedding.js +22 -7
- package/dist/rag/embedding.js.map +1 -1
- package/dist/runtime/query/abandon-turn.d.ts.map +1 -1
- package/dist/runtime/query/abandon-turn.js +9 -0
- package/dist/runtime/query/abandon-turn.js.map +1 -1
- package/dist/runtime/query/compact-session.d.ts +10 -3
- package/dist/runtime/query/compact-session.d.ts.map +1 -1
- package/dist/runtime/query/compact-session.js +24 -14
- package/dist/runtime/query/compact-session.js.map +1 -1
- package/dist/runtime/query/guard.d.ts.map +1 -1
- package/dist/runtime/query/guard.js +12 -2
- package/dist/runtime/query/guard.js.map +1 -1
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +2 -0
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts +3 -0
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +46 -11
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/phases/advisory.js +2 -2
- package/dist/runtime/query/iteration/phases/advisory.js.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.js +60 -5
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts +2 -0
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js +1 -0
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/runtime/query/iteration/request-prefix.d.ts +21 -0
- package/dist/runtime/query/iteration/request-prefix.d.ts.map +1 -0
- package/dist/runtime/query/iteration/request-prefix.js +111 -0
- package/dist/runtime/query/iteration/request-prefix.js.map +1 -0
- package/dist/runtime/query/prepare-turn.d.ts.map +1 -1
- package/dist/runtime/query/prepare-turn.js +1 -1
- package/dist/runtime/query/prepare-turn.js.map +1 -1
- package/dist/runtime/query/review-policy.d.ts +11 -3
- package/dist/runtime/query/review-policy.d.ts.map +1 -1
- package/dist/runtime/query/review-policy.js +54 -3
- package/dist/runtime/query/review-policy.js.map +1 -1
- package/dist/sandbox/exec-stdin.d.ts +21 -0
- package/dist/sandbox/exec-stdin.d.ts.map +1 -0
- package/dist/sandbox/exec-stdin.js +40 -0
- package/dist/sandbox/exec-stdin.js.map +1 -0
- package/dist/sandbox/file-walk-program.js +1 -1
- package/dist/sandbox/file-walk.d.ts +12 -7
- package/dist/sandbox/file-walk.d.ts.map +1 -1
- package/dist/sandbox/file-walk.js +13 -4
- package/dist/sandbox/file-walk.js.map +1 -1
- package/dist/sandbox/ignore-matcher.d.ts +3 -0
- package/dist/sandbox/ignore-matcher.d.ts.map +1 -1
- package/dist/sandbox/ignore-matcher.js +8 -2
- package/dist/sandbox/ignore-matcher.js.map +1 -1
- package/dist/sandbox/ignore-source.d.ts.map +1 -1
- package/dist/sandbox/ignore-source.js +52 -8
- package/dist/sandbox/ignore-source.js.map +1 -1
- package/dist/sandbox/index.d.ts +3 -2
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +2 -1
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/limit-error.d.ts +7 -0
- package/dist/sandbox/limit-error.d.ts.map +1 -0
- package/dist/sandbox/limit-error.js +13 -0
- package/dist/sandbox/limit-error.js.map +1 -0
- package/dist/sandbox/provider/local.d.ts +1 -0
- package/dist/sandbox/provider/local.d.ts.map +1 -1
- package/dist/sandbox/provider/local.js +52 -13
- package/dist/sandbox/provider/local.js.map +1 -1
- package/dist/session/paths.d.ts +6 -0
- package/dist/session/paths.d.ts.map +1 -1
- package/dist/session/paths.js +7 -0
- package/dist/session/paths.js.map +1 -1
- package/dist/session-query/index.d.ts +1 -0
- package/dist/session-query/index.d.ts.map +1 -1
- package/dist/session-query/index.js +26 -15
- package/dist/session-query/index.js.map +1 -1
- package/dist/store/budget/ledger.d.ts +15 -1
- package/dist/store/budget/ledger.d.ts.map +1 -1
- package/dist/store/budget/ledger.js +80 -1
- package/dist/store/budget/ledger.js.map +1 -1
- package/dist/store/evidence/disk.js +3 -1
- package/dist/store/evidence/disk.js.map +1 -1
- package/dist/store/evidence/index-page.d.ts +1 -0
- package/dist/store/evidence/index-page.d.ts.map +1 -1
- package/dist/store/evidence/index-page.js +8 -0
- package/dist/store/evidence/index-page.js.map +1 -1
- package/dist/store/evidence/source-text.d.ts +1 -1
- package/dist/store/memory/operation-lock.d.ts.map +1 -1
- package/dist/store/memory/operation-lock.js +15 -1
- package/dist/store/memory/operation-lock.js.map +1 -1
- package/dist/store/session-log/core.d.ts.map +1 -1
- package/dist/store/session-log/core.js +23 -0
- package/dist/store/session-log/core.js.map +1 -1
- package/dist/tools/builtins/atomic-write-file.d.ts +2 -0
- package/dist/tools/builtins/atomic-write-file.d.ts.map +1 -1
- package/dist/tools/builtins/atomic-write-file.js +37 -8
- package/dist/tools/builtins/atomic-write-file.js.map +1 -1
- package/dist/tools/builtins/computer-use-image.d.ts +9 -0
- package/dist/tools/builtins/computer-use-image.d.ts.map +1 -1
- package/dist/tools/builtins/computer-use-image.js +21 -0
- package/dist/tools/builtins/computer-use-image.js.map +1 -1
- package/dist/tools/builtins/computer-use.d.ts +1 -9
- package/dist/tools/builtins/computer-use.d.ts.map +1 -1
- package/dist/tools/builtins/computer-use.js +2 -22
- package/dist/tools/builtins/computer-use.js.map +1 -1
- package/dist/tools/builtins/read-file.d.ts.map +1 -1
- package/dist/tools/builtins/read-file.js +20 -12
- package/dist/tools/builtins/read-file.js.map +1 -1
- package/dist/tools/defineTool.d.ts.map +1 -1
- package/dist/tools/defineTool.js +4 -3
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/tool-is-available.d.ts +4 -0
- package/dist/tools/tool-is-available.d.ts.map +1 -0
- package/dist/tools/tool-is-available.js +8 -0
- package/dist/tools/tool-is-available.js.map +1 -0
- package/dist/toolsets/manager.d.ts +7 -3
- package/dist/toolsets/manager.d.ts.map +1 -1
- package/dist/toolsets/manager.js +7 -3
- package/dist/toolsets/manager.js.map +1 -1
- package/dist/types/common/index.d.ts +26 -0
- package/dist/types/common/index.d.ts.map +1 -1
- package/dist/types/common/index.js +17 -1
- package/dist/types/common/index.js.map +1 -1
- package/dist/types/hitl/index.d.ts +11 -0
- package/dist/types/hitl/index.d.ts.map +1 -1
- package/dist/types/hitl/index.js.map +1 -1
- package/dist/types/rag/embedding.d.ts +4 -0
- package/dist/types/rag/embedding.d.ts.map +1 -1
- package/dist/types/sandbox/index.d.ts +32 -2
- package/dist/types/sandbox/index.d.ts.map +1 -1
- package/dist/types/sandbox/index.js.map +1 -1
- package/dist/types/session/checkpoint.d.ts +4 -0
- package/dist/types/session/checkpoint.d.ts.map +1 -1
- package/dist/types/session/checkpoint.js +2 -0
- package/dist/types/session/checkpoint.js.map +1 -1
- package/dist/types/session/events.d.ts +49 -0
- package/dist/types/session/events.d.ts.map +1 -1
- package/dist/types/session/events.js.map +1 -1
- package/dist/types/session/records.d.ts +44 -6
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +10 -0
- package/dist/types/session/records.js.map +1 -1
- package/dist/utils/cost.d.ts +32 -0
- package/dist/utils/cost.d.ts.map +1 -1
- package/dist/utils/cost.js +101 -8
- package/dist/utils/cost.js.map +1 -1
- package/package.json +2 -2
- package/src/authorization/protected-paths.ts +7 -0
- package/src/authorization/readonly-commands.ts +85 -3
- package/src/authorization/shell-paths.ts +141 -3
- package/src/bridge/acp/permission.ts +6 -0
- package/src/bridge/acp/server.ts +20 -1
- package/src/compaction/context-window.ts +11 -0
- package/src/compaction/manual.ts +23 -8
- package/src/compaction/plan.ts +11 -5
- package/src/compaction/retained-images.ts +130 -0
- package/src/compaction/token-estimate.ts +86 -8
- package/src/compaction/tool-result-editing.ts +20 -8
- package/src/constants/acp/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/manager/session/turn-recorder.ts +31 -7
- package/src/pricing/catalogue.generated.ts +353 -21
- package/src/pricing/rates.source.json +254 -26
- package/src/provider/attribution.ts +1 -1
- package/src/public-runtime.ts +22 -0
- package/src/rag/embedding.ts +23 -7
- package/src/runtime/query/abandon-turn.ts +9 -0
- package/src/runtime/query/compact-session.ts +50 -15
- package/src/runtime/query/guard.ts +13 -2
- package/src/runtime/query/index.ts +2 -0
- package/src/runtime/query/iteration/index.ts +46 -11
- package/src/runtime/query/iteration/phases/advisory.ts +2 -2
- package/src/runtime/query/iteration/phases/compaction.ts +77 -5
- package/src/runtime/query/iteration/phases/context.ts +3 -0
- package/src/runtime/query/iteration/request-prefix.ts +161 -0
- package/src/runtime/query/prepare-turn.ts +2 -1
- package/src/runtime/query/review-policy.ts +79 -11
- package/src/sandbox/exec-stdin.ts +54 -0
- package/src/sandbox/file-walk-program.ts +1 -1
- package/src/sandbox/file-walk.ts +25 -18
- package/src/sandbox/ignore-matcher.ts +13 -3
- package/src/sandbox/ignore-source.ts +52 -8
- package/src/sandbox/index.ts +8 -2
- package/src/sandbox/limit-error.ts +10 -0
- package/src/sandbox/provider/local.ts +56 -23
- package/src/session/paths.ts +9 -0
- package/src/session-query/index.ts +23 -14
- package/src/store/budget/ledger.ts +93 -2
- package/src/store/evidence/disk.ts +3 -1
- package/src/store/evidence/index-page.ts +11 -0
- package/src/store/memory/operation-lock.ts +19 -1
- package/src/store/session-log/core.ts +26 -0
- package/src/tools/builtins/atomic-write-file.ts +49 -7
- package/src/tools/builtins/computer-use-image.ts +20 -0
- package/src/tools/builtins/computer-use.ts +1 -20
- package/src/tools/builtins/read-file.ts +34 -12
- package/src/tools/defineTool.ts +4 -3
- package/src/tools/tool-is-available.ts +11 -0
- package/src/toolsets/manager.ts +7 -3
- package/src/types/common/index.ts +50 -1
- package/src/types/hitl/index.ts +11 -0
- package/src/types/rag/embedding.ts +7 -0
- package/src/types/sandbox/index.ts +31 -1
- package/src/types/session/checkpoint.ts +2 -0
- package/src/types/session/events.ts +50 -0
- package/src/types/session/records.ts +15 -0
- package/src/utils/cost.ts +144 -8
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// CI re-runs the generator and fails on any difference, so a hand edit here is
|
|
6
6
|
// reverted by the next run at best and reported as drift at worst.
|
|
7
7
|
//
|
|
8
|
-
// 4 vendors,
|
|
8
|
+
// 4 vendors, 52 priced models.
|
|
9
9
|
|
|
10
10
|
import type { ModelPricing } from '../utils/cost.js'
|
|
11
11
|
|
|
@@ -32,7 +32,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
32
32
|
{
|
|
33
33
|
inputCostPer1M: 10,
|
|
34
34
|
outputCostPer1M: 50,
|
|
35
|
-
cache: {
|
|
35
|
+
cache: {
|
|
36
|
+
promptIncludesCacheReads: false,
|
|
37
|
+
readCostPer1M: 1,
|
|
38
|
+
writeCostPer1M: 12.5,
|
|
39
|
+
writeCostPer1MOneHour: 20,
|
|
40
|
+
},
|
|
41
|
+
usMultiplier: 1.1,
|
|
36
42
|
webSearchCostPer1000: 10,
|
|
37
43
|
},
|
|
38
44
|
],
|
|
@@ -41,7 +47,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
41
47
|
{
|
|
42
48
|
inputCostPer1M: 10,
|
|
43
49
|
outputCostPer1M: 50,
|
|
44
|
-
cache: {
|
|
50
|
+
cache: {
|
|
51
|
+
promptIncludesCacheReads: false,
|
|
52
|
+
readCostPer1M: 0.25,
|
|
53
|
+
writeCostPer1M: 12.5,
|
|
54
|
+
writeCostPer1MOneHour: 20,
|
|
55
|
+
},
|
|
56
|
+
usMultiplier: 1.1,
|
|
45
57
|
webSearchCostPer1000: 10,
|
|
46
58
|
},
|
|
47
59
|
],
|
|
@@ -50,8 +62,14 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
50
62
|
{
|
|
51
63
|
inputCostPer1M: 8,
|
|
52
64
|
outputCostPer1M: 40,
|
|
53
|
-
cache: {
|
|
65
|
+
cache: {
|
|
66
|
+
promptIncludesCacheReads: false,
|
|
67
|
+
readCostPer1M: 0.2,
|
|
68
|
+
writeCostPer1M: 10,
|
|
69
|
+
writeCostPer1MOneHour: 16,
|
|
70
|
+
},
|
|
54
71
|
fastMultiplier: 2,
|
|
72
|
+
usMultiplier: 1.1,
|
|
55
73
|
webSearchCostPer1000: 10,
|
|
56
74
|
},
|
|
57
75
|
],
|
|
@@ -60,7 +78,35 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
60
78
|
{
|
|
61
79
|
inputCostPer1M: 1,
|
|
62
80
|
outputCostPer1M: 5,
|
|
63
|
-
cache: {
|
|
81
|
+
cache: {
|
|
82
|
+
promptIncludesCacheReads: false,
|
|
83
|
+
readCostPer1M: 0.1,
|
|
84
|
+
writeCostPer1M: 1.25,
|
|
85
|
+
writeCostPer1MOneHour: 2,
|
|
86
|
+
},
|
|
87
|
+
webSearchCostPer1000: 10,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
'claude-haiku-5-5',
|
|
92
|
+
{
|
|
93
|
+
inputCostPer1M: 0.1,
|
|
94
|
+
outputCostPer1M: 0.5,
|
|
95
|
+
cache: {
|
|
96
|
+
promptIncludesCacheReads: false,
|
|
97
|
+
readCostPer1M: 0.01,
|
|
98
|
+
writeCostPer1M: 0.125,
|
|
99
|
+
writeCostPer1MOneHour: 0.2,
|
|
100
|
+
},
|
|
101
|
+
usMultiplier: 1.1,
|
|
102
|
+
longContext: {
|
|
103
|
+
aboveInputTokens: 100000,
|
|
104
|
+
inputCostPer1M: 0.5,
|
|
105
|
+
outputCostPer1M: 2.5,
|
|
106
|
+
cacheReadCostPer1M: 0.05,
|
|
107
|
+
cacheWriteCostPer1M: 0.625,
|
|
108
|
+
cacheWriteCostPer1MOneHour: 1,
|
|
109
|
+
},
|
|
64
110
|
webSearchCostPer1000: 10,
|
|
65
111
|
},
|
|
66
112
|
],
|
|
@@ -69,7 +115,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
69
115
|
{
|
|
70
116
|
inputCostPer1M: 10,
|
|
71
117
|
outputCostPer1M: 50,
|
|
72
|
-
cache: {
|
|
118
|
+
cache: {
|
|
119
|
+
promptIncludesCacheReads: false,
|
|
120
|
+
readCostPer1M: 1,
|
|
121
|
+
writeCostPer1M: 12.5,
|
|
122
|
+
writeCostPer1MOneHour: 20,
|
|
123
|
+
},
|
|
124
|
+
usMultiplier: 1.1,
|
|
73
125
|
webSearchCostPer1000: 10,
|
|
74
126
|
},
|
|
75
127
|
],
|
|
@@ -78,7 +130,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
78
130
|
{
|
|
79
131
|
inputCostPer1M: 10,
|
|
80
132
|
outputCostPer1M: 50,
|
|
81
|
-
cache: {
|
|
133
|
+
cache: {
|
|
134
|
+
promptIncludesCacheReads: false,
|
|
135
|
+
readCostPer1M: 0.25,
|
|
136
|
+
writeCostPer1M: 12.5,
|
|
137
|
+
writeCostPer1MOneHour: 20,
|
|
138
|
+
},
|
|
139
|
+
usMultiplier: 1.1,
|
|
82
140
|
webSearchCostPer1000: 10,
|
|
83
141
|
},
|
|
84
142
|
],
|
|
@@ -87,8 +145,14 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
87
145
|
{
|
|
88
146
|
inputCostPer1M: 8,
|
|
89
147
|
outputCostPer1M: 40,
|
|
90
|
-
cache: {
|
|
148
|
+
cache: {
|
|
149
|
+
promptIncludesCacheReads: false,
|
|
150
|
+
readCostPer1M: 0.2,
|
|
151
|
+
writeCostPer1M: 10,
|
|
152
|
+
writeCostPer1MOneHour: 16,
|
|
153
|
+
},
|
|
91
154
|
fastMultiplier: 2,
|
|
155
|
+
usMultiplier: 1.1,
|
|
92
156
|
webSearchCostPer1000: 10,
|
|
93
157
|
},
|
|
94
158
|
],
|
|
@@ -97,7 +161,12 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
97
161
|
{
|
|
98
162
|
inputCostPer1M: 15,
|
|
99
163
|
outputCostPer1M: 75,
|
|
100
|
-
cache: {
|
|
164
|
+
cache: {
|
|
165
|
+
promptIncludesCacheReads: false,
|
|
166
|
+
readCostPer1M: 1.5,
|
|
167
|
+
writeCostPer1M: 18.75,
|
|
168
|
+
writeCostPer1MOneHour: 30,
|
|
169
|
+
},
|
|
101
170
|
webSearchCostPer1000: 10,
|
|
102
171
|
},
|
|
103
172
|
],
|
|
@@ -106,7 +175,12 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
106
175
|
{
|
|
107
176
|
inputCostPer1M: 15,
|
|
108
177
|
outputCostPer1M: 75,
|
|
109
|
-
cache: {
|
|
178
|
+
cache: {
|
|
179
|
+
promptIncludesCacheReads: false,
|
|
180
|
+
readCostPer1M: 1.5,
|
|
181
|
+
writeCostPer1M: 18.75,
|
|
182
|
+
writeCostPer1MOneHour: 30,
|
|
183
|
+
},
|
|
110
184
|
webSearchCostPer1000: 10,
|
|
111
185
|
},
|
|
112
186
|
],
|
|
@@ -115,7 +189,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
115
189
|
{
|
|
116
190
|
inputCostPer1M: 5,
|
|
117
191
|
outputCostPer1M: 25,
|
|
118
|
-
cache: {
|
|
192
|
+
cache: {
|
|
193
|
+
promptIncludesCacheReads: false,
|
|
194
|
+
readCostPer1M: 0.5,
|
|
195
|
+
writeCostPer1M: 6.25,
|
|
196
|
+
writeCostPer1MOneHour: 10,
|
|
197
|
+
},
|
|
198
|
+
usMultiplier: 1.1,
|
|
119
199
|
webSearchCostPer1000: 10,
|
|
120
200
|
},
|
|
121
201
|
],
|
|
@@ -124,7 +204,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
124
204
|
{
|
|
125
205
|
inputCostPer1M: 5,
|
|
126
206
|
outputCostPer1M: 25,
|
|
127
|
-
cache: {
|
|
207
|
+
cache: {
|
|
208
|
+
promptIncludesCacheReads: false,
|
|
209
|
+
readCostPer1M: 0.5,
|
|
210
|
+
writeCostPer1M: 6.25,
|
|
211
|
+
writeCostPer1MOneHour: 10,
|
|
212
|
+
},
|
|
213
|
+
usMultiplier: 1.1,
|
|
128
214
|
webSearchCostPer1000: 10,
|
|
129
215
|
},
|
|
130
216
|
],
|
|
@@ -133,8 +219,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
133
219
|
{
|
|
134
220
|
inputCostPer1M: 5,
|
|
135
221
|
outputCostPer1M: 25,
|
|
136
|
-
cache: {
|
|
137
|
-
|
|
222
|
+
cache: {
|
|
223
|
+
promptIncludesCacheReads: false,
|
|
224
|
+
readCostPer1M: 0.5,
|
|
225
|
+
writeCostPer1M: 6.25,
|
|
226
|
+
writeCostPer1MOneHour: 10,
|
|
227
|
+
},
|
|
228
|
+
usMultiplier: 1.1,
|
|
138
229
|
webSearchCostPer1000: 10,
|
|
139
230
|
},
|
|
140
231
|
],
|
|
@@ -143,8 +234,14 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
143
234
|
{
|
|
144
235
|
inputCostPer1M: 5,
|
|
145
236
|
outputCostPer1M: 25,
|
|
146
|
-
cache: {
|
|
237
|
+
cache: {
|
|
238
|
+
promptIncludesCacheReads: false,
|
|
239
|
+
readCostPer1M: 0.5,
|
|
240
|
+
writeCostPer1M: 6.25,
|
|
241
|
+
writeCostPer1MOneHour: 10,
|
|
242
|
+
},
|
|
147
243
|
fastMultiplier: 2,
|
|
244
|
+
usMultiplier: 1.1,
|
|
148
245
|
webSearchCostPer1000: 10,
|
|
149
246
|
},
|
|
150
247
|
],
|
|
@@ -153,8 +250,14 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
153
250
|
{
|
|
154
251
|
inputCostPer1M: 4,
|
|
155
252
|
outputCostPer1M: 20,
|
|
156
|
-
cache: {
|
|
253
|
+
cache: {
|
|
254
|
+
promptIncludesCacheReads: false,
|
|
255
|
+
readCostPer1M: 0.2,
|
|
256
|
+
writeCostPer1M: 5,
|
|
257
|
+
writeCostPer1MOneHour: 8,
|
|
258
|
+
},
|
|
157
259
|
fastMultiplier: 2,
|
|
260
|
+
usMultiplier: 1.1,
|
|
158
261
|
webSearchCostPer1000: 10,
|
|
159
262
|
},
|
|
160
263
|
],
|
|
@@ -163,7 +266,12 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
163
266
|
{
|
|
164
267
|
inputCostPer1M: 3,
|
|
165
268
|
outputCostPer1M: 15,
|
|
166
|
-
cache: {
|
|
269
|
+
cache: {
|
|
270
|
+
promptIncludesCacheReads: false,
|
|
271
|
+
readCostPer1M: 0.3,
|
|
272
|
+
writeCostPer1M: 3.75,
|
|
273
|
+
writeCostPer1MOneHour: 6,
|
|
274
|
+
},
|
|
167
275
|
webSearchCostPer1000: 10,
|
|
168
276
|
},
|
|
169
277
|
],
|
|
@@ -172,7 +280,12 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
172
280
|
{
|
|
173
281
|
inputCostPer1M: 3,
|
|
174
282
|
outputCostPer1M: 15,
|
|
175
|
-
cache: {
|
|
283
|
+
cache: {
|
|
284
|
+
promptIncludesCacheReads: false,
|
|
285
|
+
readCostPer1M: 0.3,
|
|
286
|
+
writeCostPer1M: 3.75,
|
|
287
|
+
writeCostPer1MOneHour: 6,
|
|
288
|
+
},
|
|
176
289
|
webSearchCostPer1000: 10,
|
|
177
290
|
},
|
|
178
291
|
],
|
|
@@ -181,7 +294,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
181
294
|
{
|
|
182
295
|
inputCostPer1M: 3,
|
|
183
296
|
outputCostPer1M: 15,
|
|
184
|
-
cache: {
|
|
297
|
+
cache: {
|
|
298
|
+
promptIncludesCacheReads: false,
|
|
299
|
+
readCostPer1M: 0.3,
|
|
300
|
+
writeCostPer1M: 3.75,
|
|
301
|
+
writeCostPer1MOneHour: 6,
|
|
302
|
+
},
|
|
303
|
+
usMultiplier: 1.1,
|
|
185
304
|
webSearchCostPer1000: 10,
|
|
186
305
|
},
|
|
187
306
|
],
|
|
@@ -190,7 +309,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
190
309
|
{
|
|
191
310
|
inputCostPer1M: 2,
|
|
192
311
|
outputCostPer1M: 10,
|
|
193
|
-
cache: {
|
|
312
|
+
cache: {
|
|
313
|
+
promptIncludesCacheReads: false,
|
|
314
|
+
readCostPer1M: 0.2,
|
|
315
|
+
writeCostPer1M: 2.5,
|
|
316
|
+
writeCostPer1MOneHour: 4,
|
|
317
|
+
},
|
|
318
|
+
usMultiplier: 1.1,
|
|
194
319
|
webSearchCostPer1000: 10,
|
|
195
320
|
},
|
|
196
321
|
],
|
|
@@ -199,7 +324,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
199
324
|
{
|
|
200
325
|
inputCostPer1M: 2,
|
|
201
326
|
outputCostPer1M: 10,
|
|
202
|
-
cache: {
|
|
327
|
+
cache: {
|
|
328
|
+
promptIncludesCacheReads: false,
|
|
329
|
+
readCostPer1M: 0.1,
|
|
330
|
+
writeCostPer1M: 2.5,
|
|
331
|
+
writeCostPer1MOneHour: 4,
|
|
332
|
+
},
|
|
333
|
+
usMultiplier: 1.1,
|
|
203
334
|
webSearchCostPer1000: 10,
|
|
204
335
|
},
|
|
205
336
|
],
|
|
@@ -310,6 +441,12 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
310
441
|
outputCostPer1M: 15,
|
|
311
442
|
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.25 },
|
|
312
443
|
fastMultiplier: 2,
|
|
444
|
+
longContext: {
|
|
445
|
+
aboveInputTokens: 272000,
|
|
446
|
+
inputCostPer1M: 5,
|
|
447
|
+
outputCostPer1M: 22.5,
|
|
448
|
+
cacheReadCostPer1M: 0.5,
|
|
449
|
+
},
|
|
313
450
|
},
|
|
314
451
|
],
|
|
315
452
|
[
|
|
@@ -336,6 +473,12 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
336
473
|
outputCostPer1M: 30,
|
|
337
474
|
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.5 },
|
|
338
475
|
fastMultiplier: 2.5,
|
|
476
|
+
longContext: {
|
|
477
|
+
aboveInputTokens: 272000,
|
|
478
|
+
inputCostPer1M: 10,
|
|
479
|
+
outputCostPer1M: 45,
|
|
480
|
+
cacheReadCostPer1M: 1,
|
|
481
|
+
},
|
|
339
482
|
},
|
|
340
483
|
],
|
|
341
484
|
[
|
|
@@ -345,6 +488,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
345
488
|
outputCostPer1M: 1.2,
|
|
346
489
|
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.02 },
|
|
347
490
|
fastMultiplier: 2,
|
|
491
|
+
longContext: {
|
|
492
|
+
aboveInputTokens: 272000,
|
|
493
|
+
inputCostPer1M: 0.4,
|
|
494
|
+
outputCostPer1M: 1.8,
|
|
495
|
+
cacheReadCostPer1M: 0.04,
|
|
496
|
+
fastMultiplier: 2,
|
|
497
|
+
},
|
|
348
498
|
},
|
|
349
499
|
],
|
|
350
500
|
[
|
|
@@ -354,6 +504,13 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
354
504
|
outputCostPer1M: 30,
|
|
355
505
|
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.5 },
|
|
356
506
|
fastMultiplier: 2,
|
|
507
|
+
longContext: {
|
|
508
|
+
aboveInputTokens: 272000,
|
|
509
|
+
inputCostPer1M: 10,
|
|
510
|
+
outputCostPer1M: 45,
|
|
511
|
+
cacheReadCostPer1M: 1,
|
|
512
|
+
fastMultiplier: 2,
|
|
513
|
+
},
|
|
357
514
|
},
|
|
358
515
|
],
|
|
359
516
|
[
|
|
@@ -363,6 +520,181 @@ export const VENDOR_RATES: readonly VendorRates[] = [
|
|
|
363
520
|
outputCostPer1M: 12,
|
|
364
521
|
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.2 },
|
|
365
522
|
fastMultiplier: 2,
|
|
523
|
+
longContext: {
|
|
524
|
+
aboveInputTokens: 272000,
|
|
525
|
+
inputCostPer1M: 4,
|
|
526
|
+
outputCostPer1M: 18,
|
|
527
|
+
cacheReadCostPer1M: 0.4,
|
|
528
|
+
fastMultiplier: 2,
|
|
529
|
+
},
|
|
530
|
+
},
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
'gpt-6-astra',
|
|
534
|
+
{
|
|
535
|
+
inputCostPer1M: 10,
|
|
536
|
+
outputCostPer1M: 50,
|
|
537
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 1 },
|
|
538
|
+
fastMultiplier: 2,
|
|
539
|
+
longContext: {
|
|
540
|
+
aboveInputTokens: 272000,
|
|
541
|
+
inputCostPer1M: 20,
|
|
542
|
+
outputCostPer1M: 75,
|
|
543
|
+
cacheReadCostPer1M: 2,
|
|
544
|
+
fastMultiplier: 2,
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
[
|
|
549
|
+
'gpt-6-astra-healthcare',
|
|
550
|
+
{
|
|
551
|
+
inputCostPer1M: 10,
|
|
552
|
+
outputCostPer1M: 50,
|
|
553
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 1 },
|
|
554
|
+
longContext: {
|
|
555
|
+
aboveInputTokens: 272000,
|
|
556
|
+
inputCostPer1M: 20,
|
|
557
|
+
outputCostPer1M: 75,
|
|
558
|
+
cacheReadCostPer1M: 2,
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
],
|
|
562
|
+
[
|
|
563
|
+
'gpt-6-luna',
|
|
564
|
+
{
|
|
565
|
+
inputCostPer1M: 0.1,
|
|
566
|
+
outputCostPer1M: 0.5,
|
|
567
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.01 },
|
|
568
|
+
fastMultiplier: 2,
|
|
569
|
+
longContext: {
|
|
570
|
+
aboveInputTokens: 272000,
|
|
571
|
+
inputCostPer1M: 0.2,
|
|
572
|
+
outputCostPer1M: 0.75,
|
|
573
|
+
cacheReadCostPer1M: 0.02,
|
|
574
|
+
fastMultiplier: 2,
|
|
575
|
+
},
|
|
576
|
+
},
|
|
577
|
+
],
|
|
578
|
+
[
|
|
579
|
+
'gpt-6-sol',
|
|
580
|
+
{
|
|
581
|
+
inputCostPer1M: 2,
|
|
582
|
+
outputCostPer1M: 10,
|
|
583
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.2 },
|
|
584
|
+
fastMultiplier: 2,
|
|
585
|
+
longContext: {
|
|
586
|
+
aboveInputTokens: 272000,
|
|
587
|
+
inputCostPer1M: 4,
|
|
588
|
+
outputCostPer1M: 15,
|
|
589
|
+
cacheReadCostPer1M: 0.4,
|
|
590
|
+
fastMultiplier: 2,
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
[
|
|
595
|
+
'gpt-6.1-sol',
|
|
596
|
+
{
|
|
597
|
+
inputCostPer1M: 2,
|
|
598
|
+
outputCostPer1M: 10,
|
|
599
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.1 },
|
|
600
|
+
fastMultiplier: 2,
|
|
601
|
+
longContext: {
|
|
602
|
+
aboveInputTokens: 272000,
|
|
603
|
+
inputCostPer1M: 4,
|
|
604
|
+
outputCostPer1M: 15,
|
|
605
|
+
cacheReadCostPer1M: 0.2,
|
|
606
|
+
fastMultiplier: 2,
|
|
607
|
+
},
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
[
|
|
611
|
+
'gpt-6.1-sol-healthcare',
|
|
612
|
+
{
|
|
613
|
+
inputCostPer1M: 2,
|
|
614
|
+
outputCostPer1M: 10,
|
|
615
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.1 },
|
|
616
|
+
longContext: {
|
|
617
|
+
aboveInputTokens: 272000,
|
|
618
|
+
inputCostPer1M: 4,
|
|
619
|
+
outputCostPer1M: 15,
|
|
620
|
+
cacheReadCostPer1M: 0.2,
|
|
621
|
+
},
|
|
622
|
+
},
|
|
623
|
+
],
|
|
624
|
+
[
|
|
625
|
+
'gpt-6.1-terra',
|
|
626
|
+
{
|
|
627
|
+
inputCostPer1M: 1,
|
|
628
|
+
outputCostPer1M: 5,
|
|
629
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.05 },
|
|
630
|
+
fastMultiplier: 2,
|
|
631
|
+
longContext: {
|
|
632
|
+
aboveInputTokens: 272000,
|
|
633
|
+
inputCostPer1M: 2,
|
|
634
|
+
outputCostPer1M: 7.5,
|
|
635
|
+
cacheReadCostPer1M: 0.1,
|
|
636
|
+
fastMultiplier: 2,
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
[
|
|
641
|
+
'gpt-6.2-astra',
|
|
642
|
+
{
|
|
643
|
+
inputCostPer1M: 8,
|
|
644
|
+
outputCostPer1M: 40,
|
|
645
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.4 },
|
|
646
|
+
fastMultiplier: 2,
|
|
647
|
+
longContext: {
|
|
648
|
+
aboveInputTokens: 272000,
|
|
649
|
+
inputCostPer1M: 16,
|
|
650
|
+
outputCostPer1M: 60,
|
|
651
|
+
cacheReadCostPer1M: 0.8,
|
|
652
|
+
fastMultiplier: 2,
|
|
653
|
+
},
|
|
654
|
+
},
|
|
655
|
+
],
|
|
656
|
+
[
|
|
657
|
+
'gpt-6.2-astra-healthcare',
|
|
658
|
+
{
|
|
659
|
+
inputCostPer1M: 8,
|
|
660
|
+
outputCostPer1M: 40,
|
|
661
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.4 },
|
|
662
|
+
longContext: {
|
|
663
|
+
aboveInputTokens: 272000,
|
|
664
|
+
inputCostPer1M: 16,
|
|
665
|
+
outputCostPer1M: 60,
|
|
666
|
+
cacheReadCostPer1M: 0.8,
|
|
667
|
+
},
|
|
668
|
+
},
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
'gpt-6.2-sol',
|
|
672
|
+
{
|
|
673
|
+
inputCostPer1M: 2,
|
|
674
|
+
outputCostPer1M: 10,
|
|
675
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.1 },
|
|
676
|
+
fastMultiplier: 2,
|
|
677
|
+
longContext: {
|
|
678
|
+
aboveInputTokens: 272000,
|
|
679
|
+
inputCostPer1M: 4,
|
|
680
|
+
outputCostPer1M: 15,
|
|
681
|
+
cacheReadCostPer1M: 0.2,
|
|
682
|
+
fastMultiplier: 2,
|
|
683
|
+
},
|
|
684
|
+
},
|
|
685
|
+
],
|
|
686
|
+
[
|
|
687
|
+
'gpt-6.2-sol-healthcare',
|
|
688
|
+
{
|
|
689
|
+
inputCostPer1M: 2,
|
|
690
|
+
outputCostPer1M: 10,
|
|
691
|
+
cache: { promptIncludesCacheReads: true, readCostPer1M: 0.1 },
|
|
692
|
+
longContext: {
|
|
693
|
+
aboveInputTokens: 272000,
|
|
694
|
+
inputCostPer1M: 4,
|
|
695
|
+
outputCostPer1M: 15,
|
|
696
|
+
cacheReadCostPer1M: 0.2,
|
|
697
|
+
},
|
|
366
698
|
},
|
|
367
699
|
],
|
|
368
700
|
[
|