Skip to content

Commit 5d04ae5

Browse files
author
Theodore Li
committed
Fix _costDollars field
1 parent a0fc749 commit 5d04ae5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/sim/tools/exa/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface ExaSearchResult {
5555
export interface ExaSearchResponse extends ToolResponse {
5656
output: {
5757
results: ExaSearchResult[]
58-
costDollars?: ExaCostDollars
58+
__costDollars?: ExaCostDollars
5959
}
6060
}
6161

@@ -84,7 +84,7 @@ export interface ExaGetContentsResult {
8484
export interface ExaGetContentsResponse extends ToolResponse {
8585
output: {
8686
results: ExaGetContentsResult[]
87-
costDollars?: ExaCostDollars
87+
__costDollars?: ExaCostDollars
8888
}
8989
}
9090

@@ -127,7 +127,7 @@ export interface ExaSimilarLink {
127127
export interface ExaFindSimilarLinksResponse extends ToolResponse {
128128
output: {
129129
similarLinks: ExaSimilarLink[]
130-
costDollars?: ExaCostDollars
130+
__costDollars?: ExaCostDollars
131131
}
132132
}
133133

@@ -145,7 +145,7 @@ export interface ExaAnswerResponse extends ToolResponse {
145145
url: string
146146
text: string
147147
}[]
148-
costDollars?: ExaCostDollars
148+
__costDollars?: ExaCostDollars
149149
}
150150
}
151151

apps/sim/tools/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ async function applyHostedKeyCostToResult(
373373
finalResult.output = {
374374
...finalResult.output,
375375
cost: {
376-
total: hostedKeyCost,
377376
...metadata,
377+
total: hostedKeyCost,
378378
},
379379
}
380380
}

0 commit comments

Comments
 (0)