Skip to content

Commit 540aa18

Browse files
author
Theodore Li
committed
Remove firecrawl error suppression
1 parent 4b073a6 commit 540aa18

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/sim/tools/firecrawl/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const mapTool: ToolConfig<MapParams, MapResponse> = {
121121
output: {
122122
success: data.success,
123123
links: data.links || [],
124-
creditsUsed: data.creditsUsed ?? 1,
124+
creditsUsed: data.creditsUsed,
125125
},
126126
}
127127
},

apps/sim/tools/firecrawl/scrape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const scrapeTool: ToolConfig<ScrapeParams, ScrapeResponse> = {
103103
markdown: data.data.markdown,
104104
html: data.data.html,
105105
metadata: data.data.metadata,
106-
creditsUsed: data.creditsUsed ?? 1,
106+
creditsUsed: data.creditsUsed,
107107
},
108108
}
109109
},

apps/sim/tools/firecrawl/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const searchTool: ToolConfig<SearchParams, SearchResponse> = {
7979
success: true,
8080
output: {
8181
data: data.data,
82-
creditsUsed: data.creditsUsed ?? 2,
82+
creditsUsed: data.creditsUsed,
8383
},
8484
}
8585
},

0 commit comments

Comments
 (0)