@anolilab/ai-model-registry 3.0.0 → 4.0.0

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 (128) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/MIGRATION.md +1 -2
  3. package/dist/index.js +1 -1
  4. package/dist/packem_shared/aihubmix-CjuksD_A.js +212 -0
  5. package/dist/packem_shared/{alibaba-BczikKWI.js → alibaba-KCpNTbPH.js} +1 -1
  6. package/dist/packem_shared/{amazon-bedrock-C584HIOL.js → amazon-bedrock-BEpdRaRK.js} +1 -1
  7. package/dist/packem_shared/anthropic-D5m7WwK5.js +2 -0
  8. package/dist/packem_shared/{azure-open-ai-BqW8n-GM.js → azure-open-ai-C6QP5dSw.js} +1 -1
  9. package/dist/packem_shared/cerebras-BjaINteN.js +1 -0
  10. package/dist/packem_shared/chutes-DJskRgMs.js +3 -0
  11. package/dist/packem_shared/cloudflare-Dj-UZyvF.js +3 -0
  12. package/dist/packem_shared/{deep-infra-Daj9AHXE.js → deep-infra-fEe-1b_K.js} +1 -1
  13. package/dist/packem_shared/{deep-seek-CuNF-oPX.js → deep-seek-CWqPVvJA.js} +1 -1
  14. package/dist/packem_shared/fireworks-ai-M5AZBJ-l.js +1 -0
  15. package/dist/packem_shared/git-hub-copilot-B0xJ4jvl.js +1 -0
  16. package/dist/packem_shared/{git-hub-models-DLQPOq8_.js → git-hub-models-Cyf4N1hP.js} +1 -1
  17. package/dist/packem_shared/{google-C3fyd2WP.js → google-CF3J5A9V.js} +1 -1
  18. package/dist/packem_shared/google-partner-DV4aTl-d.js +1 -0
  19. package/dist/packem_shared/{groq-DzoEEDv2.js → groq-BiW3tuc8.js} +1 -1
  20. package/dist/packem_shared/{inference-DPiaNfe3.js → inference-DeVnQ2rP.js} +1 -1
  21. package/dist/packem_shared/{meta-eHxKee2Y.js → meta-DgZfkCHT.js} +1 -1
  22. package/dist/packem_shared/{mistral-Df1ARjgI.js → mistral-Bqk6rtoD.js} +1 -1
  23. package/dist/packem_shared/model-scope-B97EzMOm.js +1 -0
  24. package/dist/packem_shared/ollama-cloud-AMbVVbEe.js +1 -0
  25. package/dist/packem_shared/open-ai-byQBxiD0.js +3 -0
  26. package/dist/packem_shared/open-router-Bgk_Eg85.js +1 -0
  27. package/dist/packem_shared/{requesty-Cxc8eC9m.js → requesty-jpAC9INf.js} +1 -1
  28. package/dist/packem_shared/{together-ai-D_mxuHjs.js → together-ai-DGMgKPuZ.js} +1 -1
  29. package/dist/packem_shared/{upstage-DLRfFlPL.js → upstage-CdH3YrFR.js} +1 -1
  30. package/dist/packem_shared/{v0-DM5fZBIr.js → v0-BjlxXJua.js} +1 -1
  31. package/dist/packem_shared/{venice-mEiDzDQs.js → venice-C3HQT6s8.js} +1 -1
  32. package/dist/packem_shared/{vercel-BiAtyn5t.js → vercel-CtkHacHk.js} +1 -1
  33. package/dist/packem_shared/{weights-_-biases-T5RZnu4K.js → weights-_-biases-DGVraFt7.js} +1 -1
  34. package/dist/packem_shared/xai-ojVHf5mV.js +1 -0
  35. package/dist/providers/aihubmix.d.ts +49 -0
  36. package/dist/providers/aihubmix.js +1 -0
  37. package/dist/providers/alibaba.js +1 -1
  38. package/dist/providers/amazon-bedrock.js +1 -1
  39. package/dist/providers/anthropic.js +1 -1
  40. package/dist/providers/azure-open-ai.js +1 -1
  41. package/dist/providers/cerebras.js +1 -1
  42. package/dist/providers/chutes.js +1 -1
  43. package/dist/providers/cloudflare.js +1 -1
  44. package/dist/providers/deep-infra.js +1 -1
  45. package/dist/providers/deep-seek.js +1 -1
  46. package/dist/providers/fireworks-ai.js +1 -1
  47. package/dist/providers/git-hub-copilot.js +1 -1
  48. package/dist/providers/git-hub-models.js +1 -1
  49. package/dist/providers/google-partner.js +1 -1
  50. package/dist/providers/google.js +1 -1
  51. package/dist/providers/groq.js +1 -1
  52. package/dist/providers/inference.js +1 -1
  53. package/dist/providers/meta.js +1 -1
  54. package/dist/providers/mistral.js +1 -1
  55. package/dist/providers/model-scope.js +1 -1
  56. package/dist/providers/ollama-cloud.d.ts +49 -0
  57. package/dist/providers/ollama-cloud.js +1 -0
  58. package/dist/providers/open-ai.js +1 -1
  59. package/dist/providers/open-router.js +1 -1
  60. package/dist/providers/requesty.js +1 -1
  61. package/dist/providers/together-ai.js +1 -1
  62. package/dist/providers/upstage.js +1 -1
  63. package/dist/providers/v0.js +1 -1
  64. package/dist/providers/venice.js +1 -1
  65. package/dist/providers/vercel.js +1 -1
  66. package/dist/providers/weights-_-biases.js +1 -1
  67. package/dist/providers/xai.js +1 -1
  68. package/dist/types/ai-hub-mix.d.ts +6 -0
  69. package/dist/types/ai-hub-mix.js +0 -0
  70. package/dist/types/cerebras.d.ts +1 -1
  71. package/dist/types/chutes.d.ts +1 -1
  72. package/dist/types/cloudflare.d.ts +1 -1
  73. package/dist/types/deep-infra.d.ts +1 -1
  74. package/dist/types/git-hub-copilot.d.ts +1 -1
  75. package/dist/types/google-partner.d.ts +1 -1
  76. package/dist/types/ollama-cloud.d.ts +6 -0
  77. package/dist/types/ollama-cloud.js +0 -0
  78. package/dist/types/providers.d.ts +2 -2
  79. package/dist/types/providers.js +1 -1
  80. package/package.json +1 -1
  81. package/public/ai-hub-mix.json +23067 -0
  82. package/public/alibaba.json +2 -2
  83. package/public/amazon-bedrock.json +2 -2
  84. package/public/anthropic.json +110 -102
  85. package/public/azure-open-ai.json +2 -2
  86. package/public/cerebras.json +23 -94
  87. package/public/chutes.json +291 -555
  88. package/public/cloudflare.json +85 -198
  89. package/public/deep-infra.json +3 -38
  90. package/public/deep-seek.json +2 -2
  91. package/public/fireworks-ai.json +38 -37
  92. package/public/git-hub-copilot.json +3 -143
  93. package/public/git-hub-models.json +2 -2
  94. package/public/google-partner.json +3 -108
  95. package/public/google-vertex.json +2 -2
  96. package/public/google.json +2 -2
  97. package/public/groq.json +2 -2
  98. package/public/hugging-face.json +2 -2
  99. package/public/inception.json +2 -2
  100. package/public/inference.json +2 -2
  101. package/public/meta.json +2 -2
  102. package/public/mistral.json +2 -2
  103. package/public/model-scope.json +214 -200
  104. package/public/morph.json +2 -2
  105. package/public/ollama-cloud.json +963 -0
  106. package/public/open-ai.json +51 -19
  107. package/public/open-router.json +235 -227
  108. package/public/providers.json +5 -3
  109. package/public/requesty.json +2 -2
  110. package/public/together-ai.json +2 -2
  111. package/public/upstage.json +2 -2
  112. package/public/v0.json +2 -2
  113. package/public/venice.json +2 -2
  114. package/public/vercel.json +2 -2
  115. package/public/weights-&-biases.json +2 -2
  116. package/public/xai.json +40 -35
  117. package/dist/packem_shared/anthropic-DBvs2vbB.js +0 -1
  118. package/dist/packem_shared/cerebras-CJECDgXt.js +0 -1
  119. package/dist/packem_shared/chutes-D8C9b9md.js +0 -1
  120. package/dist/packem_shared/cloudflare-B7QnJt9v.js +0 -3
  121. package/dist/packem_shared/fireworks-ai-BPHNCUee.js +0 -1
  122. package/dist/packem_shared/git-hub-copilot-Bsh8TUd-.js +0 -1
  123. package/dist/packem_shared/google-partner-DIaaPFvL.js +0 -1
  124. package/dist/packem_shared/model-scope-CbLWfNQZ.js +0 -1
  125. package/dist/packem_shared/open-ai-C9DhciZY.js +0 -1
  126. package/dist/packem_shared/open-router-DTMWsl0q.js +0 -1
  127. package/dist/packem_shared/xai-Bh_OuZmP.js +0 -1
  128. package/public/api.json +0 -107641
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## @anolilab/ai-model-registry [4.0.0](https://github.com/anolilab/ai-models/compare/@anolilab/ai-model-registry@3.0.0...@anolilab/ai-model-registry@4.0.0) (2026-01-13)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * **ai-model-registry:** Ensure to update any references to the modified model structures in your implementation.
6
+ * **ai-model-registry:** Ensure to update any references to the removed api.json in your implementation.
7
+
8
+ ### Features
9
+
10
+ * **ai-model-registry:** add AIHubMix provider and update model configurations ([3c00caf](https://github.com/anolilab/ai-models/commit/3c00caf6368c24f118cbd765b4ac12cf0c0afed3))
11
+ * **ai-model-registry:** add new provider and update model configurations ([ff86548](https://github.com/anolilab/ai-models/commit/ff86548ec782bb8ded318a291a96aaa5332baff3))
12
+ * **ai-model-registry:** update release configuration and add TODO for missing providers ([89d47bd](https://github.com/anolilab/ai-models/commit/89d47bd438e77f112aa847b5cd88c4e57987b90d))
13
+
1
14
  ## @anolilab/ai-model-registry [3.0.0](https://github.com/anolilab/ai-models/compare/@anolilab/ai-model-registry@2.0.0...@anolilab/ai-model-registry@3.0.0) (2026-01-13)
2
15
 
3
16
  ### ⚠ BREAKING CHANGES
package/MIGRATION.md CHANGED
@@ -581,8 +581,7 @@ async function getModelWithFallback(modelId: string) {
581
581
  try {
582
582
  const model = await getModelById(modelId);
583
583
 
584
- if (model)
585
- return model;
584
+ if (model) return model;
586
585
  } catch (error) {
587
586
  console.warn("Failed to load model:", error);
588
587
  }
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var c=Object.defineProperty;var s=(o,r)=>c(o,"name",{value:r,configurable:!0});import{u as v}from"./packem_shared/alibaba-BczikKWI.js";import{v as u}from"./packem_shared/amazon-bedrock-C584HIOL.js";import{P as g}from"./packem_shared/anthropic-DBvs2vbB.js";import{c as w}from"./packem_shared/azure-open-ai-BqW8n-GM.js";import{g as y}from"./packem_shared/cerebras-CJECDgXt.js";import{M}from"./packem_shared/chutes-D8C9b9md.js";import{w as A}from"./packem_shared/cloudflare-B7QnJt9v.js";import{h as x}from"./packem_shared/deep-infra-Daj9AHXE.js";import{x as P}from"./packem_shared/deep-seek-CuNF-oPX.js";import{y as h}from"./packem_shared/fireworks-ai-BPHNCUee.js";import{b as I}from"./packem_shared/git-hub-copilot-Bsh8TUd-.js";import{A as _}from"./packem_shared/git-hub-models-DLQPOq8_.js";import{N as b}from"./packem_shared/google-C3fyd2WP.js";import{_ as B}from"./packem_shared/google-partner-DIaaPFvL.js";import{I as G}from"./packem_shared/google-vertex-CbWZUmxZ.js";import{S}from"./packem_shared/groq-DzoEEDv2.js";import{k}from"./packem_shared/hugging-face-CWivgPFf.js";import{B as O}from"./packem_shared/inception-Zyt71AIg.js";import{C as V}from"./packem_shared/inference-DPiaNfe3.js";import{G as C}from"./packem_shared/meta-eHxKee2Y.js";import{H}from"./packem_shared/mistral-Df1ARjgI.js";import{R as q}from"./packem_shared/model-scope-CbLWfNQZ.js";import{V as z}from"./packem_shared/morph-CBEkhIbg.js";import{q as D}from"./packem_shared/open-ai-C9DhciZY.js";import{z as E}from"./packem_shared/open-router-DTMWsl0q.js";import{O as F}from"./packem_shared/requesty-Cxc8eC9m.js";import{F as R}from"./packem_shared/together-ai-D_mxuHjs.js";import{L}from"./packem_shared/upstage-DLRfFlPL.js";import{T}from"./packem_shared/v0-DM5fZBIr.js";import{D as U}from"./packem_shared/venice-mEiDzDQs.js";import{E as W}from"./packem_shared/vercel-BiAtyn5t.js";import{U as j}from"./packem_shared/weights-_-biases-T5RZnu4K.js";import{W as N}from"./packem_shared/xai-Bh_OuZmP.js";var X=Object.defineProperty,i=s((o,r)=>X(o,"name",{value:r,configurable:!0}),"i");const d=new Map([["Alibaba",v],["Amazon Bedrock",u],["Anthropic",g],["Azure OpenAI",w],["cerebras",y],["chutes",M],["Cloudflare",A],["Deep Infra",x],["DeepSeek",P],["Fireworks AI",h],["GitHub Copilot",I],["GitHub Models",_],["Google",b],["Google Partner",B],["Google Vertex",G],["Groq",S],["Hugging Face",k],["inception",O],["Inference",V],["Meta",C],["Mistral",H],["ModelScope",q],["Morph",z],["OpenAI",D],["OpenRouter",E],["Requesty",F],["Together AI",R],["Upstage",L],["V0",T],["Venice",U],["Vercel",W],["Weights & Biases",j],["XAI",N]]);let m=null;const l=new Map;let a=null;const n=i(async o=>{const r=l.get(o);if(r)return r;const t=d.get(o);if(t){const p=t.getModels();return l.set(o,p),p}return null},"loadProviderModels"),f=i(async()=>a||(a=Array.from(d.keys()).sort(),a),"loadProvidersList"),e=i(async()=>m||(m=(await Promise.all((await f()).map(async o=>await n(o)??[]))).flat(),m),"loadAllModels"),So=i(async()=>{const o=await f();if(o.length>0)return o;const r=new Set;return(await e()).forEach(t=>{t.provider&&r.add(t.provider)}),[...r].sort()},"getProviders"),ko=i(async o=>await n(o)??(await e()).filter(r=>r.provider===o),"getModelsByProvider"),Oo=i(async o=>{if(o?.trim())return(await e()).find(r=>r.id===o)},"getModelById"),Vo=i(async o=>(o.provider?await n(o.provider)??await e():await e()).filter(r=>!(o.vision!==void 0&&r.vision!==o.vision||o.reasoning!==void 0&&r.reasoning!==o.reasoning||o.tool_call!==void 0&&r.toolCall!==o.tool_call||o.streaming_supported!==void 0&&r.streamingSupported!==o.streaming_supported||o.provider&&r.provider!==o.provider||o.preview!==void 0&&r.preview!==o.preview||o.modalities?.input&&!o.modalities.input.every(t=>r.modalities.input.includes(t))||o.modalities?.output&&!o.modalities.output.every(t=>r.modalities.output.includes(t))||o.context_min!==void 0&&(!r.limit.context||r.limit.context<o.context_min)||o.context_max!==void 0&&(!r.limit.context||r.limit.context>o.context_max))),"searchModels"),Co=i(async()=>[...await e()],"getAllModels"),Ho=i(async()=>{const o={};return(await e()).forEach(r=>{r.provider&&(o[r.provider]=(o[r.provider]||0)+1)}),o},"getProviderStats");export{Co as getAllModels,Oo as getModelById,ko as getModelsByProvider,Ho as getProviderStats,So as getProviders,Vo as searchModels};
1
+ var c=Object.defineProperty;var l=(o,r)=>c(o,"name",{value:r,configurable:!0});import{u}from"./packem_shared/aihubmix-CjuksD_A.js";import{v}from"./packem_shared/alibaba-KCpNTbPH.js";import{P as g}from"./packem_shared/amazon-bedrock-BEpdRaRK.js";import{c as w}from"./packem_shared/anthropic-D5m7WwK5.js";import{g as y}from"./packem_shared/azure-open-ai-C6QP5dSw.js";import{M}from"./packem_shared/cerebras-BjaINteN.js";import{x}from"./packem_shared/chutes-DJskRgMs.js";import{h as A}from"./packem_shared/cloudflare-Dj-UZyvF.js";import{w as P}from"./packem_shared/deep-infra-fEe-1b_K.js";import{b as h}from"./packem_shared/deep-seek-CWqPVvJA.js";import{y as I}from"./packem_shared/fireworks-ai-M5AZBJ-l.js";import{A as b}from"./packem_shared/git-hub-copilot-B0xJ4jvl.js";import{N as S}from"./packem_shared/git-hub-models-Cyf4N1hP.js";import{_}from"./packem_shared/google-CF3J5A9V.js";import{S as B}from"./packem_shared/google-partner-DV4aTl-d.js";import{I as G}from"./packem_shared/google-vertex-CbWZUmxZ.js";import{C as O}from"./packem_shared/groq-BiW3tuc8.js";import{k}from"./packem_shared/hugging-face-CWivgPFf.js";import{B as C}from"./packem_shared/inception-Zyt71AIg.js";import{G as H}from"./packem_shared/inference-DeVnQ2rP.js";import{H as V}from"./packem_shared/meta-DgZfkCHT.js";import{O as q}from"./packem_shared/mistral-Bqk6rtoD.js";import{R as z}from"./packem_shared/model-scope-B97EzMOm.js";import{V as D}from"./packem_shared/morph-CBEkhIbg.js";import{q as E}from"./packem_shared/ollama-cloud-AMbVVbEe.js";import{z as F}from"./packem_shared/open-ai-byQBxiD0.js";import{F as R}from"./packem_shared/open-router-Bgk_Eg85.js";import{L as j}from"./packem_shared/requesty-jpAC9INf.js";import{T as L}from"./packem_shared/together-ai-DGMgKPuZ.js";import{D as T}from"./packem_shared/upstage-CdH3YrFR.js";import{E as U}from"./packem_shared/v0-BjlxXJua.js";import{U as W}from"./packem_shared/venice-C3HQT6s8.js";import{W as X}from"./packem_shared/vercel-CtkHacHk.js";import{X as N}from"./packem_shared/weights-_-biases-DGVraFt7.js";import{j as J}from"./packem_shared/xai-ojVHf5mV.js";var K=Object.defineProperty,i=l((o,r)=>K(o,"name",{value:r,configurable:!0}),"i");const d=new Map([["AIHubMix",u],["Alibaba",v],["Amazon Bedrock",g],["Anthropic",w],["Azure OpenAI",y],["cerebras",M],["chutes",x],["Cloudflare",A],["Deep Infra",P],["DeepSeek",h],["Fireworks AI",I],["GitHub Copilot",b],["GitHub Models",S],["Google",_],["Google Partner",B],["Google Vertex",G],["Groq",O],["Hugging Face",k],["inception",C],["Inference",H],["Meta",V],["Mistral",q],["ModelScope",z],["Morph",D],["Ollama Cloud",E],["OpenAI",F],["OpenRouter",R],["Requesty",j],["Together AI",L],["Upstage",T],["V0",U],["Venice",W],["Vercel",X],["Weights & Biases",N],["XAI",J]]);let m=null;const s=new Map;let a=null;const n=i(async o=>{const r=s.get(o);if(r)return r;const t=d.get(o);if(t){const p=t.getModels();return s.set(o,p),p}return null},"loadProviderModels"),f=i(async()=>a||(a=[...d.keys()].toSorted(),a),"loadProvidersList"),e=i(async()=>m||(m=(await Promise.all((await f()).map(async o=>await n(o)??[]))).flat(),m),"loadAllModels"),Ho=i(async()=>{const o=await f();if(o.length>0)return o;const r=new Set;return(await e()).forEach(t=>{t.provider&&r.add(t.provider)}),[...r].toSorted()},"getProviders"),Vo=i(async o=>await n(o)??(await e()).filter(r=>r.provider===o),"getModelsByProvider"),qo=i(async o=>{if(o?.trim())return(await e()).find(r=>r.id===o)},"getModelById"),zo=i(async o=>(o.provider?await n(o.provider)??await e():await e()).filter(r=>!(o.vision!==void 0&&r.vision!==o.vision||o.reasoning!==void 0&&r.reasoning!==o.reasoning||o.tool_call!==void 0&&r.toolCall!==o.tool_call||o.streaming_supported!==void 0&&r.streamingSupported!==o.streaming_supported||o.provider&&r.provider!==o.provider||o.preview!==void 0&&r.preview!==o.preview||o.modalities?.input&&!o.modalities.input.every(t=>r.modalities.input.includes(t))||o.modalities?.output&&!o.modalities.output.every(t=>r.modalities.output.includes(t))||o.context_min!==void 0&&(!r.limit.context||r.limit.context<o.context_min)||o.context_max!==void 0&&(!r.limit.context||r.limit.context>o.context_max))),"searchModels"),Do=i(async()=>[...await e()],"getAllModels"),Eo=i(async()=>{const o={};return(await e()).forEach(r=>{r.provider&&(o[r.provider]=(o[r.provider]||0)+1)}),o},"getProviderStats");export{Do as getAllModels,qo as getModelById,Vo as getModelsByProvider,Eo as getProviderStats,Ho as getProviders,zo as searchModels};