Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api): cost tracking (#2537)

tom0d5b9f20611c
diff --git a/apps/api/src/lib/extract/url-processor.ts b/apps/api/src/lib/extract/url-processor.ts
index 21fc6f32d..0a4a2627e 100644
--- a/apps/api/src/lib/extract/url-processor.ts
+++ b/apps/api/src/lib/extract/url-processor.ts
@@ -52,9 +52,9 @@ export async function generateBasicCompletion(
module: "extract",
method: "generateBasicCompletion",
},
- model: "openai/gpt-4o",
+ model: "openai/gpt-4.1",
cost: calculateCost(
- "openai/gpt-4o",
+ "openai/gpt-4.1",
result.usage?.inputTokens ?? 0,
result.usage?.outputTokens ?? 0,
),