We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fecc435 commit 6f35179Copy full SHA for 6f35179
apps/sim/tools/firecrawl/scrape.ts
@@ -38,7 +38,7 @@ export const scrapeTool: ToolConfig<ScrapeParams, ScrapeResponse> = {
38
pricing: {
39
type: 'custom',
40
getCost: (_params, output) => {
41
- const creditsUsedString = (output.metadata as { creditsUsed?: number })?.creditsUsed
+ const creditsUsed = (output.metadata as { creditsUsed?: number })?.creditsUsed
42
if (creditsUsedString == null) {
43
throw new Error('Firecrawl response missing creditsUsed field')
44
}
0 commit comments