mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-01 02:21:58 +08:00
more cost calc
This commit is contained in:
parent
9bea877eb1
commit
33aece8e96
@ -160,7 +160,7 @@ export async function performGenerateLlmsTxt(
|
|||||||
|
|
||||||
const { extract } = await generateCompletions({
|
const { extract } = await generateCompletions({
|
||||||
logger,
|
logger,
|
||||||
model: getModel("gpt-4o-mini"),
|
model: getModel("gpt-4o-mini", "openai"),
|
||||||
options: {
|
options: {
|
||||||
systemPrompt: "",
|
systemPrompt: "",
|
||||||
mode: "llm",
|
mode: "llm",
|
||||||
|
@ -187,6 +187,7 @@ export function calculateCost(
|
|||||||
) {
|
) {
|
||||||
const modelCosts = {
|
const modelCosts = {
|
||||||
"openai/o3-mini": { input_cost: 1.1, output_cost: 4.4 },
|
"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-mini": { input_cost: 0.15, output_cost: 0.6 },
|
||||||
"openai/gpt-4o": { input_cost: 2.5, output_cost: 10 },
|
"openai/gpt-4o": { input_cost: 2.5, output_cost: 10 },
|
||||||
"google/gemini-2.0-flash-001": { input_cost: 0.15, output_cost: 0.6 },
|
"google/gemini-2.0-flash-001": { input_cost: 0.15, output_cost: 0.6 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user