caplyr 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -2
- package/dist/index.mjs +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -358,7 +358,12 @@ var MODEL_PRICING = {
|
|
|
358
358
|
"gpt-3.5-turbo": { input: 0.5, output: 1.5 },
|
|
359
359
|
"o1": { input: 15, output: 60 },
|
|
360
360
|
"o1-mini": { input: 3, output: 12 },
|
|
361
|
-
"o3-mini": { input: 1.1, output: 4.4 }
|
|
361
|
+
"o3-mini": { input: 1.1, output: 4.4 },
|
|
362
|
+
// ---- Groq (OpenAI-compatible) ----
|
|
363
|
+
"llama-3.3-70b-versatile": { input: 0.59, output: 0.79 },
|
|
364
|
+
"llama-3.1-8b-instant": { input: 0.05, output: 0.08 },
|
|
365
|
+
"mixtral-8x7b-32768": { input: 0.24, output: 0.24 },
|
|
366
|
+
"gemma2-9b-it": { input: 0.2, output: 0.2 }
|
|
362
367
|
};
|
|
363
368
|
var DEFAULT_FALLBACKS = {
|
|
364
369
|
// Anthropic downgrades
|
|
@@ -373,7 +378,11 @@ var DEFAULT_FALLBACKS = {
|
|
|
373
378
|
"gpt-4-turbo": "gpt-4o-mini",
|
|
374
379
|
"gpt-4": "gpt-3.5-turbo",
|
|
375
380
|
"o1": "o1-mini",
|
|
376
|
-
"o1-mini": "o3-mini"
|
|
381
|
+
"o1-mini": "o3-mini",
|
|
382
|
+
// Groq downgrades
|
|
383
|
+
"llama-3.3-70b-versatile": "llama-3.1-8b-instant",
|
|
384
|
+
"mixtral-8x7b-32768": "llama-3.1-8b-instant",
|
|
385
|
+
"gemma2-9b-it": "llama-3.1-8b-instant"
|
|
377
386
|
};
|
|
378
387
|
function calculateCost(model, inputTokens, outputTokens) {
|
|
379
388
|
const pricing = MODEL_PRICING[model];
|
package/dist/index.mjs
CHANGED
|
@@ -325,7 +325,12 @@ var MODEL_PRICING = {
|
|
|
325
325
|
"gpt-3.5-turbo": { input: 0.5, output: 1.5 },
|
|
326
326
|
"o1": { input: 15, output: 60 },
|
|
327
327
|
"o1-mini": { input: 3, output: 12 },
|
|
328
|
-
"o3-mini": { input: 1.1, output: 4.4 }
|
|
328
|
+
"o3-mini": { input: 1.1, output: 4.4 },
|
|
329
|
+
// ---- Groq (OpenAI-compatible) ----
|
|
330
|
+
"llama-3.3-70b-versatile": { input: 0.59, output: 0.79 },
|
|
331
|
+
"llama-3.1-8b-instant": { input: 0.05, output: 0.08 },
|
|
332
|
+
"mixtral-8x7b-32768": { input: 0.24, output: 0.24 },
|
|
333
|
+
"gemma2-9b-it": { input: 0.2, output: 0.2 }
|
|
329
334
|
};
|
|
330
335
|
var DEFAULT_FALLBACKS = {
|
|
331
336
|
// Anthropic downgrades
|
|
@@ -340,7 +345,11 @@ var DEFAULT_FALLBACKS = {
|
|
|
340
345
|
"gpt-4-turbo": "gpt-4o-mini",
|
|
341
346
|
"gpt-4": "gpt-3.5-turbo",
|
|
342
347
|
"o1": "o1-mini",
|
|
343
|
-
"o1-mini": "o3-mini"
|
|
348
|
+
"o1-mini": "o3-mini",
|
|
349
|
+
// Groq downgrades
|
|
350
|
+
"llama-3.3-70b-versatile": "llama-3.1-8b-instant",
|
|
351
|
+
"mixtral-8x7b-32768": "llama-3.1-8b-instant",
|
|
352
|
+
"gemma2-9b-it": "llama-3.1-8b-instant"
|
|
344
353
|
};
|
|
345
354
|
function calculateCost(model, inputTokens, outputTokens) {
|
|
346
355
|
const pricing = MODEL_PRICING[model];
|