Skip to content

Commit 33aece8

Browse files
committed
more cost calc
1 parent 9bea877 commit 33aece8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/api/src/lib/generate-llmstxt/generate-llmstxt-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export async function performGenerateLlmsTxt(
160160

161161
const { extract } = await generateCompletions({
162162
logger,
163-
model: getModel("gpt-4o-mini"),
163+
model: getModel("gpt-4o-mini", "openai"),
164164
options: {
165165
systemPrompt: "",
166166
mode: "llm",

apps/api/src/scraper/scrapeURL/transformers/llmExtract.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export function calculateCost(
187187
) {
188188
const modelCosts = {
189189
"openai/o3-mini": { input_cost: 1.1, output_cost: 4.4 },
190+
"gpt-4o-mini": { input_cost: 0.15, output_cost: 0.6 },
190191
"openai/gpt-4o-mini": { input_cost: 0.15, output_cost: 0.6 },
191192
"openai/gpt-4o": { input_cost: 2.5, output_cost: 10 },
192193
"google/gemini-2.0-flash-001": { input_cost: 0.15, output_cost: 0.6 },

0 commit comments

Comments
 (0)