Skip to content

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

Update embeddings.ts

Nicolas416c75cc43f3
diff --git a/apps/api/src/lib/search-index/embeddings.ts b/apps/api/src/lib/search-index/embeddings.ts
index 582aaab75..5c8bde8cb 100644
--- a/apps/api/src/lib/search-index/embeddings.ts
+++ b/apps/api/src/lib/search-index/embeddings.ts
@@ -236,10 +236,10 @@ export async function generateEmbeddingsBatch(
/**
* Estimate embedding cost for text
- * Based on OpenAI pricing: $0.0001 / 1M tokens
+ * Based on OpenAI pricing: $0.02 / 1M tokens
*/
export function estimateEmbeddingCost(tokenCount: number): number {
- return (tokenCount / 1_000_000) * 0.0001;
+ return (tokenCount / 1_000_000) * 0.02;
}
/**