@funkai/models 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.
Files changed (83) hide show
  1. package/.turbo/turbo-build.log +33 -33
  2. package/CHANGELOG.md +6 -0
  3. package/dist/alibaba-B6q4Ng1R.mjs.map +1 -1
  4. package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -1
  5. package/dist/anthropic-yB7ST97_.mjs.map +1 -1
  6. package/dist/cerebras-COfl7XM-.mjs.map +1 -1
  7. package/dist/cohere-B7TgO0hT.mjs.map +1 -1
  8. package/dist/deepinfra-B0GxUwCG.mjs.map +1 -1
  9. package/dist/deepseek-D64ZEsvS.mjs.map +1 -1
  10. package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -1
  11. package/dist/google-BypRl349.mjs.map +1 -1
  12. package/dist/google-vertex-DbS-zTGD.mjs.map +1 -1
  13. package/dist/groq-ei_PerYi.mjs.map +1 -1
  14. package/dist/huggingface-DaM1EeLP.mjs.map +1 -1
  15. package/dist/inception-CspEzqNV.mjs.map +1 -1
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.mts.map +1 -1
  18. package/dist/index.mjs +2 -1
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/llama-Cf3-koap.mjs.map +1 -1
  21. package/dist/mistral-BI9MdAO4.mjs.map +1 -1
  22. package/dist/nvidia-COHacuoa.mjs.map +1 -1
  23. package/dist/openai-C0nCfZUq.mjs.map +1 -1
  24. package/dist/openrouter-DSFzxKQb.mjs.map +1 -1
  25. package/dist/perplexity-zeZ2WlBU.mjs.map +1 -1
  26. package/dist/providers/alibaba.d.mts +1 -1
  27. package/dist/providers/amazon-bedrock.d.mts +1 -1
  28. package/dist/providers/anthropic.d.mts +1 -1
  29. package/dist/providers/cerebras.d.mts +1 -1
  30. package/dist/providers/cohere.d.mts +1 -1
  31. package/dist/providers/deepinfra.d.mts +1 -1
  32. package/dist/providers/deepseek.d.mts +1 -1
  33. package/dist/providers/fireworks-ai.d.mts +1 -1
  34. package/dist/providers/google-vertex.d.mts +1 -1
  35. package/dist/providers/google.d.mts +1 -1
  36. package/dist/providers/groq.d.mts +1 -1
  37. package/dist/providers/huggingface.d.mts +1 -1
  38. package/dist/providers/inception.d.mts +1 -1
  39. package/dist/providers/llama.d.mts +1 -1
  40. package/dist/providers/mistral.d.mts +1 -1
  41. package/dist/providers/nvidia.d.mts +1 -1
  42. package/dist/providers/openai.d.mts +1 -1
  43. package/dist/providers/openrouter.d.mts +1 -1
  44. package/dist/providers/perplexity.d.mts +1 -1
  45. package/dist/providers/togetherai.d.mts +1 -1
  46. package/dist/providers/xai.d.mts +1 -1
  47. package/dist/togetherai-BvcxUfPE.mjs.map +1 -1
  48. package/dist/{types-DjdaZckF.d.mts → types-DIzolT_s.d.mts} +61 -21
  49. package/dist/types-DIzolT_s.d.mts.map +1 -0
  50. package/dist/xai-fSuAkQJo.mjs.map +1 -1
  51. package/package.json +6 -3
  52. package/scripts/generate-models.ts +152 -63
  53. package/src/catalog/index.test.ts +8 -8
  54. package/src/catalog/index.ts +4 -1
  55. package/src/catalog/providers/alibaba.ts +91 -91
  56. package/src/catalog/providers/amazon-bedrock.ts +205 -185
  57. package/src/catalog/providers/anthropic.ts +87 -62
  58. package/src/catalog/providers/cerebras.ts +9 -9
  59. package/src/catalog/providers/cohere.ts +16 -16
  60. package/src/catalog/providers/deepinfra.ts +71 -71
  61. package/src/catalog/providers/deepseek.ts +3 -3
  62. package/src/catalog/providers/fireworks-ai.ts +36 -36
  63. package/src/catalog/providers/google-vertex.ts +62 -62
  64. package/src/catalog/providers/google.ts +69 -69
  65. package/src/catalog/providers/groq.ts +24 -24
  66. package/src/catalog/providers/huggingface.ts +52 -52
  67. package/src/catalog/providers/inception.ts +9 -9
  68. package/src/catalog/providers/index.ts +1 -0
  69. package/src/catalog/providers/llama.ts +7 -7
  70. package/src/catalog/providers/mistral.ts +60 -60
  71. package/src/catalog/providers/nvidia.ts +84 -84
  72. package/src/catalog/providers/openai.ts +115 -115
  73. package/src/catalog/providers/openrouter.ts +448 -433
  74. package/src/catalog/providers/perplexity.ts +9 -9
  75. package/src/catalog/providers/togetherai.ts +47 -47
  76. package/src/catalog/providers/xai.ts +49 -49
  77. package/src/catalog/types.ts +60 -20
  78. package/src/cost/calculate.test.ts +11 -11
  79. package/src/provider/registry.ts +1 -1
  80. package/src/provider/types.ts +1 -1
  81. package/tsconfig.json +2 -1
  82. package/tsdown.config.ts +7 -3
  83. package/dist/types-DjdaZckF.d.mts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"perplexity-zeZ2WlBU.mjs","names":[],"sources":["../src/catalog/providers/perplexity.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const PERPLEXITY_MODELS = [\n {\n id: \"sonar-reasoning-pro\",\n name: \"Sonar Reasoning Pro\",\n provider: \"perplexity\",\n family: \"sonar-reasoning\",\n pricing: { input: 0.000002, output: 0.000008 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: true, structuredOutput: false },\n },\n {\n id: \"sonar\",\n name: \"Sonar\",\n provider: \"perplexity\",\n family: \"sonar\",\n pricing: { input: 0.000001, output: 0.000001 },\n contextWindow: 128000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"sonar-deep-research\",\n name: \"Perplexity Sonar Deep Research\",\n provider: \"perplexity\",\n family: \"\",\n pricing: { input: 0.000002, output: 0.000008, reasoning: 0.000003 },\n contextWindow: 128000,\n maxOutput: 32768,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"sonar-pro\",\n name: \"Sonar Pro\",\n provider: \"perplexity\",\n family: \"sonar-pro\",\n pricing: { input: 0.000003, output: 0.000015 },\n contextWindow: 200000,\n maxOutput: 8192,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: false, attachment: true, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,oBAAoB;CAC/B;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU;EAC9C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAM,UAAU;GAAO,YAAY;GAAM,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU;EAC9C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAO,YAAY;GAAO,kBAAkB;GAAO;EAChG;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU,WAAW;GAAU;EACnE,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAO,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU;EAC9C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAO,UAAU;GAAO,YAAY;GAAM,kBAAkB;GAAO;EAC/F;CACF"}
1
+ {"version":3,"file":"perplexity-zeZ2WlBU.mjs","names":[],"sources":["../src/catalog/providers/perplexity.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const PERPLEXITY_MODELS = [\n {\n id: \"sonar-reasoning-pro\",\n name: \"Sonar Reasoning Pro\",\n provider: \"perplexity\",\n family: \"sonar-reasoning\",\n pricing: { input: 0.000_002, output: 0.000_008 },\n contextWindow: 128_000,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: true, structuredOutput: false },\n },\n {\n id: \"sonar\",\n name: \"Sonar\",\n provider: \"perplexity\",\n family: \"sonar\",\n pricing: { input: 0.000_001, output: 0.000_001 },\n contextWindow: 128_000,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"sonar-deep-research\",\n name: \"Perplexity Sonar Deep Research\",\n provider: \"perplexity\",\n family: \"\",\n pricing: { input: 0.000_002, output: 0.000_008, reasoning: 0.000_003 },\n contextWindow: 128_000,\n maxOutput: 32_768,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"sonar-pro\",\n name: \"Sonar Pro\",\n provider: \"perplexity\",\n family: \"sonar-pro\",\n pricing: { input: 0.000_003, output: 0.000_015 },\n contextWindow: 200_000,\n maxOutput: 8192,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: false, attachment: true, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,oBAAoB;CAC/B;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAW;EAChD,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAM,UAAU;GAAO,YAAY;GAAM,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAW;EAChD,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAO,YAAY;GAAO,kBAAkB;GAAO;EAChG;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAW,WAAW;GAAW;EACtE,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAO,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAW;EAChD,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAO,UAAU;GAAO,YAAY;GAAM,kBAAkB;GAAO;EAC/F;CACF"}
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/alibaba.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/amazon-bedrock.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/anthropic.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/cerebras.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/cohere.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/deepinfra.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/deepseek.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/fireworks-ai.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/google-vertex.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/google.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/groq.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/huggingface.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/inception.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/llama.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/mistral.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/nvidia.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/openai.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/openrouter.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/perplexity.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/togetherai.d.ts
@@ -1,4 +1,4 @@
1
- import { n as ModelDefinition } from "../types-DjdaZckF.mjs";
1
+ import { n as ModelDefinition } from "../types-DIzolT_s.mjs";
2
2
  import { LiteralUnion } from "type-fest";
3
3
 
4
4
  //#region src/catalog/providers/xai.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"togetherai-BvcxUfPE.mjs","names":[],"sources":["../src/catalog/providers/togetherai.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const TOGETHERAI_MODELS = [\n {\n id: \"zai-org/GLM-4.6\",\n name: \"GLM 4.6\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 6e-7, output: 0.0000022 },\n contextWindow: 200000,\n maxOutput: 200000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"zai-org/GLM-4.7\",\n name: \"GLM-4.7\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 4.5e-7, output: 0.000002 },\n contextWindow: 200000,\n maxOutput: 200000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"zai-org/GLM-5\",\n name: \"GLM-5\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 0.000001, output: 0.0000032 },\n contextWindow: 202752,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: true },\n },\n {\n id: \"essentialai/Rnj-1-Instruct\",\n name: \"Rnj-1 Instruct\",\n provider: \"togetherai\",\n family: \"rnj\",\n pricing: { input: 1.5e-7, output: 1.5e-7 },\n contextWindow: 32768,\n maxOutput: 32768,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"MiniMaxAI/MiniMax-M2.5\",\n name: \"MiniMax-M2.5\",\n provider: \"togetherai\",\n family: \"minimax\",\n pricing: { input: 3e-7, output: 0.0000012, cacheRead: 6e-8 },\n contextWindow: 204800,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-V3-1\",\n name: \"DeepSeek V3.1\",\n provider: \"togetherai\",\n family: \"deepseek\",\n pricing: { input: 6e-7, output: 0.0000017 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-R1\",\n name: \"DeepSeek R1\",\n provider: \"togetherai\",\n family: \"deepseek-thinking\",\n pricing: { input: 0.000003, output: 0.000007 },\n contextWindow: 163839,\n maxOutput: 163839,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-V3\",\n name: \"DeepSeek V3\",\n provider: \"togetherai\",\n family: \"deepseek\",\n pricing: { input: 0.00000125, output: 0.00000125 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"moonshotai/Kimi-K2-Instruct\",\n name: \"Kimi K2 Instruct\",\n provider: \"togetherai\",\n family: \"kimi\",\n pricing: { input: 0.000001, output: 0.000003 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"moonshotai/Kimi-K2.5\",\n name: \"Kimi K2.5\",\n provider: \"togetherai\",\n family: \"kimi\",\n pricing: { input: 5e-7, output: 0.0000028 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"meta-llama/Llama-3.3-70B-Instruct-Turbo\",\n name: \"Llama 3.3 70B\",\n provider: \"togetherai\",\n family: \"llama\",\n pricing: { input: 8.8e-7, output: 8.8e-7 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Next-80B-A3B-Instruct\",\n name: \"Qwen3-Next-80B-A3B-Instruct\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 1.5e-7, output: 0.0000015 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-235B-A22B-Instruct-2507-tput\",\n name: \"Qwen3 235B A22B Instruct 2507 FP8\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 2e-7, output: 6e-7 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3.5-397B-A17B\",\n name: \"Qwen3.5 397B A17B\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 6e-7, output: 0.0000036 },\n contextWindow: 262144,\n maxOutput: 130000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Coder-Next-FP8\",\n name: \"Qwen3 Coder Next FP8\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 5e-7, output: 0.0000012 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8\",\n name: \"Qwen3 Coder 480B A35B Instruct\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 0.000002, output: 0.000002 },\n contextWindow: 262144,\n maxOutput: 262144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"openai/gpt-oss-120b\",\n name: \"GPT OSS 120B\",\n provider: \"togetherai\",\n family: \"gpt-oss\",\n pricing: { input: 1.5e-7, output: 6e-7 },\n contextWindow: 131072,\n maxOutput: 131072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAe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,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAM,QAAQ;GAAW;EAC3C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU;EAC9C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAQ,QAAQ;GAAM;EACxC,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC9F;CACF"}
1
+ {"version":3,"file":"togetherai-BvcxUfPE.mjs","names":[],"sources":["../src/catalog/providers/togetherai.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const TOGETHERAI_MODELS = [\n {\n id: \"zai-org/GLM-4.6\",\n name: \"GLM 4.6\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 6e-7, output: 0.000_002_2 },\n contextWindow: 200_000,\n maxOutput: 200_000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"zai-org/GLM-4.7\",\n name: \"GLM-4.7\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 4.5e-7, output: 0.000_002 },\n contextWindow: 200_000,\n maxOutput: 200_000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"zai-org/GLM-5\",\n name: \"GLM-5\",\n provider: \"togetherai\",\n family: \"glm\",\n pricing: { input: 0.000_001, output: 0.000_003_2 },\n contextWindow: 202_752,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: true },\n },\n {\n id: \"essentialai/Rnj-1-Instruct\",\n name: \"Rnj-1 Instruct\",\n provider: \"togetherai\",\n family: \"rnj\",\n pricing: { input: 1.5e-7, output: 1.5e-7 },\n contextWindow: 32_768,\n maxOutput: 32_768,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"MiniMaxAI/MiniMax-M2.5\",\n name: \"MiniMax-M2.5\",\n provider: \"togetherai\",\n family: \"minimax\",\n pricing: { input: 3e-7, output: 0.000_001_2, cacheRead: 6e-8 },\n contextWindow: 204_800,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-V3-1\",\n name: \"DeepSeek V3.1\",\n provider: \"togetherai\",\n family: \"deepseek\",\n pricing: { input: 6e-7, output: 0.000_001_7 },\n contextWindow: 131_072,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-R1\",\n name: \"DeepSeek R1\",\n provider: \"togetherai\",\n family: \"deepseek-thinking\",\n pricing: { input: 0.000_003, output: 0.000_007 },\n contextWindow: 163_839,\n maxOutput: 163_839,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: false, attachment: false, structuredOutput: false },\n },\n {\n id: \"deepseek-ai/DeepSeek-V3\",\n name: \"DeepSeek V3\",\n provider: \"togetherai\",\n family: \"deepseek\",\n pricing: { input: 0.000_001_25, output: 0.000_001_25 },\n contextWindow: 131_072,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"moonshotai/Kimi-K2-Instruct\",\n name: \"Kimi K2 Instruct\",\n provider: \"togetherai\",\n family: \"kimi\",\n pricing: { input: 0.000_001, output: 0.000_003 },\n contextWindow: 131_072,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"moonshotai/Kimi-K2.5\",\n name: \"Kimi K2.5\",\n provider: \"togetherai\",\n family: \"kimi\",\n pricing: { input: 5e-7, output: 0.000_002_8 },\n contextWindow: 262_144,\n maxOutput: 262_144,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"meta-llama/Llama-3.3-70B-Instruct-Turbo\",\n name: \"Llama 3.3 70B\",\n provider: \"togetherai\",\n family: \"llama\",\n pricing: { input: 8.8e-7, output: 8.8e-7 },\n contextWindow: 131_072,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Next-80B-A3B-Instruct\",\n name: \"Qwen3-Next-80B-A3B-Instruct\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 1.5e-7, output: 0.000_001_5 },\n contextWindow: 262_144,\n maxOutput: 262_144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-235B-A22B-Instruct-2507-tput\",\n name: \"Qwen3 235B A22B Instruct 2507 FP8\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 2e-7, output: 6e-7 },\n contextWindow: 262_144,\n maxOutput: 262_144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3.5-397B-A17B\",\n name: \"Qwen3.5 397B A17B\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 6e-7, output: 0.000_003_6 },\n contextWindow: 262_144,\n maxOutput: 130_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Coder-Next-FP8\",\n name: \"Qwen3 Coder Next FP8\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 5e-7, output: 0.000_001_2 },\n contextWindow: 262_144,\n maxOutput: 262_144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8\",\n name: \"Qwen3 Coder 480B A35B Instruct\",\n provider: \"togetherai\",\n family: \"qwen\",\n pricing: { input: 0.000_002, output: 0.000_002 },\n contextWindow: 262_144,\n maxOutput: 262_144,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"openai/gpt-oss-120b\",\n name: \"GPT OSS 120B\",\n provider: \"togetherai\",\n family: \"gpt-oss\",\n pricing: { input: 1.5e-7, output: 6e-7 },\n contextWindow: 131_072,\n maxOutput: 131_072,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,oBAAoB;CAC/B;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAM,QAAQ;GAAa;EAC7C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAQ,QAAQ;GAAW;EAC7C,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAa;EAClD,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAM,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAM;EAC7F;CACD;EACE,IAAI;EACJ,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ricing {
10
- /** Cost per input token. */
10
+ /**
11
+ * Cost per input token.
12
+ */
11
13
  readonly input: number;
12
- /** Cost per output token. */
14
+ /**
15
+ * Cost per output token.
16
+ */
13
17
  readonly output: number;
14
- /** Cost per cached input token (read). */
18
+ /**
19
+ * Cost per cached input token (read).
20
+ */
15
21
  readonly cacheRead?: number;
16
- /** Cost per cached input token (write). */
22
+ /**
23
+ * Cost per cached input token (write).
24
+ */
17
25
  readonly cacheWrite?: number;
18
- /** Cost per reasoning token. */
26
+ /**
27
+ * Cost per reasoning token.
28
+ */
19
29
  readonly reasoning?: number;
20
30
  }
21
31
  /**
@@ -25,47 +35,77 @@ interface ModelPricing {
25
35
  * `"image"`, `"audio"`, `"video"`, `"pdf"`).
26
36
  */
27
37
  interface ModelModalities {
28
- /** Accepted input modalities. */
38
+ /**
39
+ * Accepted input modalities.
40
+ */
29
41
  readonly input: readonly string[];
30
- /** Produced output modalities. */
42
+ /**
43
+ * Produced output modalities.
44
+ */
31
45
  readonly output: readonly string[];
32
46
  }
33
47
  /**
34
48
  * Boolean capability flags for a model.
35
49
  */
36
50
  interface ModelCapabilities {
37
- /** Supports chain-of-thought / extended thinking. */
51
+ /**
52
+ * Supports chain-of-thought / extended thinking.
53
+ */
38
54
  readonly reasoning: boolean;
39
- /** Supports tool (function) calling. */
55
+ /**
56
+ * Supports tool (function) calling.
57
+ */
40
58
  readonly toolCall: boolean;
41
- /** Supports file/image attachments. */
59
+ /**
60
+ * Supports file/image attachments.
61
+ */
42
62
  readonly attachment: boolean;
43
- /** Supports structured (JSON) output. */
63
+ /**
64
+ * Supports structured (JSON) output.
65
+ */
44
66
  readonly structuredOutput: boolean;
45
67
  }
46
68
  /**
47
69
  * Model definition with metadata, pricing, and capabilities.
48
70
  */
49
71
  interface ModelDefinition {
50
- /** Provider-native model identifier (e.g. `"gpt-4.1"`, `"claude-sonnet-4"`). */
72
+ /**
73
+ * Provider-native model identifier (e.g. `"gpt-4.1"`, `"claude-sonnet-4"`).
74
+ */
51
75
  readonly id: string;
52
- /** Human-readable display name (e.g. `"GPT-4.1"`). */
76
+ /**
77
+ * Human-readable display name (e.g. `"GPT-4.1"`).
78
+ */
53
79
  readonly name: string;
54
- /** Provider slug matching the key in `providers.json` (e.g. `"openai"`). */
80
+ /**
81
+ * Provider slug matching the key in `providers.json` (e.g. `"openai"`).
82
+ */
55
83
  readonly provider: string;
56
- /** Model family (e.g. `"gpt"`, `"claude-sonnet"`). */
84
+ /**
85
+ * Model family (e.g. `"gpt"`, `"claude-sonnet"`).
86
+ */
57
87
  readonly family: string;
58
- /** Token pricing rates (per-token, converted from per-million at generation time). */
88
+ /**
89
+ * Token pricing rates (per-token, converted from per-million at generation time).
90
+ */
59
91
  readonly pricing: ModelPricing;
60
- /** Maximum context window size in tokens. */
92
+ /**
93
+ * Maximum context window size in tokens.
94
+ */
61
95
  readonly contextWindow: number;
62
- /** Maximum output tokens. */
96
+ /**
97
+ * Maximum output tokens.
98
+ */
63
99
  readonly maxOutput: number;
64
- /** Supported input/output modalities. */
100
+ /**
101
+ * Supported input/output modalities.
102
+ */
65
103
  readonly modalities: ModelModalities;
66
- /** Model capability flags. */
104
+ /**
105
+ * Model capability flags.
106
+ */
67
107
  readonly capabilities: ModelCapabilities;
68
108
  }
69
109
  //#endregion
70
110
  export { ModelPricing as i, ModelDefinition as n, ModelModalities as r, ModelCapabilities as t };
71
- //# sourceMappingURL=types-DjdaZckF.d.mts.map
111
+ //# sourceMappingURL=types-DIzolT_s.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DIzolT_s.d.mts","names":[],"sources":["../src/catalog/types.ts"],"mappings":";;AAOA;;;;;;UAAiB,YAAA;EAmBN;;;EAAA,SAfA,KAAA;EA6BM;;;EAAA,SAxBN,MAAA;EAiCM;AAMjB;;EANiB,SA5BN,SAAA;EAkCuB;;;EAAA,SA7BvB,UAAA;EAgDA;;;EAAA,SA3CA,SAAA;AAAA;;;;;;;UASM,eAAA;EAiDN;;;EAAA,SA7CA,KAAA;EA4DS;;;EAAA,SAvDT,MAAA;AAAA;;;;UAMM,iBAAA;;;;WAIN,SAAA;;;;WAKA,QAAA;;;;WAKA,UAAA;;;;WAKA,gBAAA;AAAA;;;;UAMM,eAAA;;;;WAIN,EAAA;;;;WAKA,IAAA;;;;WAKA,QAAA;;;;WAKA,MAAA;;;;WAKA,OAAA,EAAS,YAAA;;;;WAKT,aAAA;;;;WAKA,SAAA;;;;WAKA,UAAA,EAAY,eAAA;;;;WAKZ,YAAA,EAAc,iBAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"xai-fSuAkQJo.mjs","names":[],"sources":["../src/catalog/providers/xai.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const XAI_MODELS = [\n {\n id: \"grok-2-1212\",\n name: \"Grok 2 (1212)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.00001, cacheRead: 0.000002 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4.20-beta-latest-non-reasoning\",\n name: \"Grok 4.20 Beta (Non-Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.000006, cacheRead: 2e-7 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-2\",\n name: \"Grok 2\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.00001, cacheRead: 0.000002 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-fast-latest\",\n name: \"Grok 3 Fast Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000005, output: 0.000025, cacheRead: 0.00000125 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-2-vision\",\n name: \"Grok 2 Vision\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.00001, cacheRead: 0.000002 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3\",\n name: \"Grok 3\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000003, output: 0.000015, cacheRead: 7.5e-7 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-code-fast-1\",\n name: \"Grok Code Fast 1\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 0.0000015, cacheRead: 2e-8 },\n contextWindow: 256000,\n maxOutput: 10000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-2-vision-1212\",\n name: \"Grok 2 Vision (1212)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.00001, cacheRead: 0.000002 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-4-1-fast-non-reasoning\",\n name: \"Grok 4.1 Fast (Non-Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-beta\",\n name: \"Grok Beta\",\n provider: \"xai\",\n family: \"grok-beta\",\n pricing: { input: 0.000005, output: 0.000015, cacheRead: 0.000005 },\n contextWindow: 131072,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-mini-fast\",\n name: \"Grok 3 Mini Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 6e-7, output: 0.000004, cacheRead: 1.5e-7, reasoning: 0.000004 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4-fast\",\n name: \"Grok 4 Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-4\",\n name: \"Grok 4\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000003, output: 0.000015, cacheRead: 7.5e-7, reasoning: 0.000015 },\n contextWindow: 256000,\n maxOutput: 64000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4.20-multi-agent-beta-latest\",\n name: \"Grok 4.20 Multi-Agent Beta\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.000006, cacheRead: 2e-7 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3-latest\",\n name: \"Grok 3 Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000003, output: 0.000015, cacheRead: 7.5e-7 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4-1-fast\",\n name: \"Grok 4.1 Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-2-vision-latest\",\n name: \"Grok 2 Vision Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.00001, cacheRead: 0.000002 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3-mini-latest\",\n name: \"Grok 3 Mini Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 3e-7, output: 5e-7, cacheRead: 7.5e-8, reasoning: 5e-7 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-mini\",\n name: \"Grok 3 Mini\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 3e-7, output: 5e-7, cacheRead: 7.5e-8, reasoning: 5e-7 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-mini-fast-latest\",\n name: \"Grok 3 Mini Fast Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 6e-7, output: 0.000004, cacheRead: 1.5e-7, reasoning: 0.000004 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-2-latest\",\n name: \"Grok 2 Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.00001, cacheRead: 0.000002 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4-fast-non-reasoning\",\n name: \"Grok 4 Fast (Non-Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-vision-beta\",\n name: \"Grok Vision Beta\",\n provider: \"xai\",\n family: \"grok-vision\",\n pricing: { input: 0.000005, output: 0.000015, cacheRead: 0.000005 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3-fast\",\n name: \"Grok 3 Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000005, output: 0.000025, cacheRead: 0.00000125 },\n contextWindow: 131072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4.20-beta-latest-reasoning\",\n name: \"Grok 4.20 Beta (Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000002, output: 0.000006, cacheRead: 2e-7 },\n contextWindow: 2000000,\n maxOutput: 30000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,aAAa;CACxB;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAS,WAAW;GAAU;EAClE,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAU,QAAQ;GAAU,WAAW;GAAM;EAC/D,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAM,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAA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AE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAM,UAAU;GAAM,YAAY;GAAM,kBAAkB;GAAO;EAC7F;CACF"}
1
+ {"version":3,"file":"xai-fSuAkQJo.mjs","names":[],"sources":["../src/catalog/providers/xai.ts"],"sourcesContent":["// ──────────────────────────────────────────────────────────────\n// ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗\n// ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║\n// █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║\n// ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║\n// ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║\n// ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝\n//\n// AUTO-GENERATED — DO NOT EDIT\n// Source: https://models.dev\n// Update: pnpm --filter=@funkai/models generate:models\n// ──────────────────────────────────────────────────────────────\n\nimport type { ModelDefinition } from \"../types.js\";\n\nexport const XAI_MODELS = [\n {\n id: \"grok-2-1212\",\n name: \"Grok 2 (1212)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_01, cacheRead: 0.000_002 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4.20-beta-latest-non-reasoning\",\n name: \"Grok 4.20 Beta (Non-Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_006, cacheRead: 2e-7 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-2\",\n name: \"Grok 2\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_01, cacheRead: 0.000_002 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-fast-latest\",\n name: \"Grok 3 Fast Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_005, output: 0.000_025, cacheRead: 0.000_001_25 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-2-vision\",\n name: \"Grok 2 Vision\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_01, cacheRead: 0.000_002 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3\",\n name: \"Grok 3\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 7.5e-7 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-code-fast-1\",\n name: \"Grok Code Fast 1\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 0.000_001_5, cacheRead: 2e-8 },\n contextWindow: 256_000,\n maxOutput: 10_000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-2-vision-1212\",\n name: \"Grok 2 Vision (1212)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_01, cacheRead: 0.000_002 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-4-1-fast-non-reasoning\",\n name: \"Grok 4.1 Fast (Non-Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-beta\",\n name: \"Grok Beta\",\n provider: \"xai\",\n family: \"grok-beta\",\n pricing: { input: 0.000_005, output: 0.000_015, cacheRead: 0.000_005 },\n contextWindow: 131_072,\n maxOutput: 4096,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-mini-fast\",\n name: \"Grok 3 Mini Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 6e-7, output: 0.000_004, cacheRead: 1.5e-7, reasoning: 0.000_004 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4-fast\",\n name: \"Grok 4 Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-4\",\n name: \"Grok 4\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 7.5e-7, reasoning: 0.000_015 },\n contextWindow: 256_000,\n maxOutput: 64_000,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4.20-multi-agent-beta-latest\",\n name: \"Grok 4.20 Multi-Agent Beta\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_006, cacheRead: 2e-7 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3-latest\",\n name: \"Grok 3 Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_003, output: 0.000_015, cacheRead: 7.5e-7 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4-1-fast\",\n name: \"Grok 4.1 Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-2-vision-latest\",\n name: \"Grok 2 Vision Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_01, cacheRead: 0.000_002 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3-mini-latest\",\n name: \"Grok 3 Mini Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 3e-7, output: 5e-7, cacheRead: 7.5e-8, reasoning: 5e-7 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-mini\",\n name: \"Grok 3 Mini\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 3e-7, output: 5e-7, cacheRead: 7.5e-8, reasoning: 5e-7 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-3-mini-fast-latest\",\n name: \"Grok 3 Mini Fast Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 6e-7, output: 0.000_004, cacheRead: 1.5e-7, reasoning: 0.000_004 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-2-latest\",\n name: \"Grok 2 Latest\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_01, cacheRead: 0.000_002 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4-fast-non-reasoning\",\n name: \"Grok 4 Fast (Non-Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 2e-7, output: 5e-7, cacheRead: 5e-8 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-vision-beta\",\n name: \"Grok Vision Beta\",\n provider: \"xai\",\n family: \"grok-vision\",\n pricing: { input: 0.000_005, output: 0.000_015, cacheRead: 0.000_005 },\n contextWindow: 8192,\n maxOutput: 4096,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },\n },\n {\n id: \"grok-3-fast\",\n name: \"Grok 3 Fast\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_005, output: 0.000_025, cacheRead: 0.000_001_25 },\n contextWindow: 131_072,\n maxOutput: 8192,\n modalities: { input: [\"text\"], output: [\"text\"] },\n capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: false },\n },\n {\n id: \"grok-4.20-beta-latest-reasoning\",\n name: \"Grok 4.20 Beta (Reasoning)\",\n provider: \"xai\",\n family: \"grok\",\n pricing: { input: 0.000_002, output: 0.000_006, cacheRead: 2e-7 },\n contextWindow: 2_000_000,\n maxOutput: 30_000,\n modalities: { input: [\"text\", \"image\"], output: [\"text\"] },\n capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },\n },\n] as const satisfies readonly ModelDefinition[];\n"],"mappings":";AAeA,MAAa,aAAa;CACxB;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAU,WAAW;GAAW;EACrE,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAAQ,CAAC,OAAO;GAAE;EACjD,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAO,kBAAkB;GAAO;EAC/F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAW,WAAW;GAAM;EACjE,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,QAAQ,QAAQ;GAAE,QAAQ,CAAC,OAAO;GAAE;EAC1D,cAAc;GAAE,WAAW;GAAO,UAAU;GAAM,YAAY;GAAM,kBAAkB;GAAO;EAC9F;CACD;EACE,IAAI;EACJ,MAAM;EACN,UAAU;EACV,QAAQ;EACR,SAAS;GAAE,OAAO;GAAW,QAAQ;GAAU,WAAW;GAAW;EACrE,eAAe;EACf,WAAW;EACX,YAAY;GAAE,OAAO,CAAC,OAAO;GAAE,QAA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,YAAY;GAAM,kBAAkB;GAAO;EAC7F;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkai/models",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "Model catalog, provider resolution, and cost calculations for the funkai AI SDK",
6
6
  "keywords": [
@@ -113,14 +113,17 @@
113
113
  "import": "./dist/providers/inception.mjs"
114
114
  }
115
115
  },
116
+ "publishConfig": {
117
+ "access": "public"
118
+ },
116
119
  "dependencies": {
117
120
  "ai": "^6.0.116",
118
- "type-fest": "^5.4.4"
121
+ "type-fest": "^5.5.0"
119
122
  },
120
123
  "devDependencies": {
121
124
  "@types/node": "^25.5.0",
122
125
  "@vitest/coverage-v8": "^4.1.0",
123
- "tsdown": "^0.21.3",
126
+ "tsdown": "^0.21.4",
124
127
  "tsx": "^4.21.0",
125
128
  "typescript": "^5.9.3",
126
129
  "vitest": "^4.1.0"