more cost calc

This commit is contained in:
Gergő Móricz 2025-04-17 14:00:44 -07:00
parent 9bea877eb1
commit 33aece8e96
2 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,7 @@ export async function performGenerateLlmsTxt(
const { extract } = await generateCompletions({
logger,
model: getModel("gpt-4o-mini"),
model: getModel("gpt-4o-mini", "openai"),
options: {
systemPrompt: "",
mode: "llm",

View File

@ -187,6 +187,7 @@ export function calculateCost(
) {
const modelCosts = {
"openai/o3-mini": { input_cost: 1.1, output_cost: 4.4 },
"gpt-4o-mini": { input_cost: 0.15, output_cost: 0.6 },
"openai/gpt-4o-mini": { input_cost: 0.15, output_cost: 0.6 },
"openai/gpt-4o": { input_cost: 2.5, output_cost: 10 },
"google/gemini-2.0-flash-001": { input_cost: 0.15, output_cost: 0.6 },