@mastra/core 1.0.0-beta.4 → 1.0.0-beta.6
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/CHANGELOG.md +598 -0
- package/dist/agent/agent-legacy.d.ts +17 -20
- package/dist/agent/agent-legacy.d.ts.map +1 -1
- package/dist/agent/agent-types.test-d.d.ts +2 -0
- package/dist/agent/agent-types.test-d.d.ts.map +1 -0
- package/dist/agent/agent.d.ts +6 -6
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.types.d.ts +3 -1
- package/dist/agent/agent.types.d.ts.map +1 -1
- package/dist/agent/index.cjs +9 -9
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +3 -3
- package/dist/agent/message-list/index.d.ts +49 -0
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/prompt/attachments-to-parts.d.ts.map +1 -1
- package/dist/agent/save-queue/index.d.ts +3 -1
- package/dist/agent/save-queue/index.d.ts.map +1 -1
- package/dist/agent/test-utils.d.ts +37 -0
- package/dist/agent/test-utils.d.ts.map +1 -1
- package/dist/agent/trip-wire.d.ts.map +1 -1
- package/dist/agent/types.d.ts +20 -6
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/utils.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +10 -10
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +1 -3
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +4 -4
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts +4 -4
- package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/schema.d.ts +12 -13
- package/dist/agent/workflows/prepare-stream/schema.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts +8 -1
- package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
- package/dist/base.cjs +2 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/cache/index.cjs +3 -3
- package/dist/cache/index.js +1 -1
- package/dist/{chunk-OJNJA5ZI.js → chunk-3CKZSDTQ.js} +3 -3
- package/dist/{chunk-OJNJA5ZI.js.map → chunk-3CKZSDTQ.js.map} +1 -1
- package/dist/{chunk-TQTAMPSC.js → chunk-3N3QE4ZK.js} +3 -3
- package/dist/chunk-3N3QE4ZK.js.map +1 -0
- package/dist/{chunk-WQSGX6XA.cjs → chunk-3TKNXJES.cjs} +56 -15
- package/dist/chunk-3TKNXJES.cjs.map +1 -0
- package/dist/{chunk-XXBWX7DT.js → chunk-45NA5ZD3.js} +11673 -9468
- package/dist/chunk-45NA5ZD3.js.map +1 -0
- package/dist/{chunk-KEURQGCQ.js → chunk-4F6RAJFU.js} +105 -21
- package/dist/chunk-4F6RAJFU.js.map +1 -0
- package/dist/{chunk-ISMGVGUM.cjs → chunk-4JKEUSCC.cjs} +4 -4
- package/dist/{chunk-ISMGVGUM.cjs.map → chunk-4JKEUSCC.cjs.map} +1 -1
- package/dist/{chunk-CYVNOIXS.cjs → chunk-4KUOSXJ7.cjs} +30 -16
- package/dist/chunk-4KUOSXJ7.cjs.map +1 -0
- package/dist/{chunk-CBAB7GOD.cjs → chunk-6BJ7XHRH.cjs} +2 -2
- package/dist/{chunk-CBAB7GOD.cjs.map → chunk-6BJ7XHRH.cjs.map} +1 -1
- package/dist/{chunk-3RW5EMSB.js → chunk-6GOLI2EY.js} +22 -9
- package/dist/chunk-6GOLI2EY.js.map +1 -0
- package/dist/{chunk-4RXG622P.cjs → chunk-6J4NRNT2.cjs} +600 -37
- package/dist/chunk-6J4NRNT2.cjs.map +1 -0
- package/dist/{chunk-J7O6WENZ.cjs → chunk-6TBWJV35.js} +5 -5
- package/dist/chunk-6TBWJV35.js.map +1 -0
- package/dist/chunk-6XCINXZ7.cjs +194 -0
- package/dist/chunk-6XCINXZ7.cjs.map +1 -0
- package/dist/{chunk-MDKPL2R2.js → chunk-7ZADRRDW.js} +5 -4
- package/dist/chunk-7ZADRRDW.js.map +1 -0
- package/dist/{chunk-DSNPWVIG.cjs → chunk-AF74UXR5.cjs} +4 -3
- package/dist/chunk-AF74UXR5.cjs.map +1 -0
- package/dist/{chunk-W3DD3XP5.js → chunk-APMPOYPI.js} +334 -138
- package/dist/chunk-APMPOYPI.js.map +1 -0
- package/dist/{chunk-LRSB62Z6.cjs → chunk-AQAIS7FH.cjs} +15 -8
- package/dist/chunk-AQAIS7FH.cjs.map +1 -0
- package/dist/chunk-BWYU7D33.js +192 -0
- package/dist/chunk-BWYU7D33.js.map +1 -0
- package/dist/{chunk-KEXGB7FK.cjs → chunk-DGV2FWB4.cjs} +7 -7
- package/dist/{chunk-KEXGB7FK.cjs.map → chunk-DGV2FWB4.cjs.map} +1 -1
- package/dist/{chunk-WTYNK7Q4.js → chunk-DXMSVGJ6.js} +599 -36
- package/dist/chunk-DXMSVGJ6.js.map +1 -0
- package/dist/{chunk-Y63IFHEZ.cjs → chunk-EOPEDKLG.cjs} +4 -4
- package/dist/chunk-EOPEDKLG.cjs.map +1 -0
- package/dist/{chunk-NZAXAFI3.js → chunk-F2GAJSBI.js} +3 -3
- package/dist/{chunk-NZAXAFI3.js.map → chunk-F2GAJSBI.js.map} +1 -1
- package/dist/{chunk-KIZIOFZC.js → chunk-FYP3AT6W.js} +17 -3
- package/dist/chunk-FYP3AT6W.js.map +1 -0
- package/dist/{chunk-ZCVTH3CH.cjs → chunk-HNHZGFZY.cjs} +5 -4
- package/dist/chunk-HNHZGFZY.cjs.map +1 -0
- package/dist/{chunk-BMAFVZ2D.cjs → chunk-IWTMMUQY.cjs} +4 -4
- package/dist/{chunk-BMAFVZ2D.cjs.map → chunk-IWTMMUQY.cjs.map} +1 -1
- package/dist/{chunk-D6EDHNGV.js → chunk-KZLP6TPJ.js} +69 -28
- package/dist/chunk-KZLP6TPJ.js.map +1 -0
- package/dist/{chunk-5WXEYDFI.cjs → chunk-LDWBLENZ.cjs} +51 -38
- package/dist/chunk-LDWBLENZ.cjs.map +1 -0
- package/dist/{chunk-HGNRQ3OG.js → chunk-LEZIKVRQ.js} +15 -8
- package/dist/chunk-LEZIKVRQ.js.map +1 -0
- package/dist/{chunk-S6URFGCZ.js → chunk-LSHPJWM5.js} +3 -3
- package/dist/{chunk-S6URFGCZ.js.map → chunk-LSHPJWM5.js.map} +1 -1
- package/dist/{chunk-E7K4FTLN.cjs → chunk-NHNXIYDG.cjs} +18 -2
- package/dist/chunk-NHNXIYDG.cjs.map +1 -0
- package/dist/{chunk-U7VECK2G.js → chunk-NIUEWICQ.js} +145 -19
- package/dist/chunk-NIUEWICQ.js.map +1 -0
- package/dist/{chunk-2NVBZKZI.cjs → chunk-NN3NOFRU.cjs} +11744 -9526
- package/dist/chunk-NN3NOFRU.cjs.map +1 -0
- package/dist/{chunk-KJ2SW6VA.js → chunk-NRUZYMHE.js} +4 -3
- package/dist/chunk-NRUZYMHE.js.map +1 -0
- package/dist/{chunk-IWB65P37.cjs → chunk-OIMB2SNZ.cjs} +155 -29
- package/dist/chunk-OIMB2SNZ.cjs.map +1 -0
- package/dist/{chunk-IWQDBVJK.js → chunk-OPALPWAM.js} +47 -8
- package/dist/chunk-OPALPWAM.js.map +1 -0
- package/dist/{chunk-X7JMA3IY.js → chunk-PSCMWPLC.js} +2 -2
- package/dist/{chunk-X7JMA3IY.js.map → chunk-PSCMWPLC.js.map} +1 -1
- package/dist/{chunk-S6OEQHEI.cjs → chunk-QGWNF2QJ.cjs} +59 -50
- package/dist/chunk-QGWNF2QJ.cjs.map +1 -0
- package/dist/{chunk-VZC4BWWH.cjs → chunk-RHTV5C5D.cjs} +19 -19
- package/dist/chunk-RHTV5C5D.cjs.map +1 -0
- package/dist/{chunk-HBJPYQRN.cjs → chunk-RTROJFEU.cjs} +78 -41
- package/dist/chunk-RTROJFEU.cjs.map +1 -0
- package/dist/chunk-S5FPOCQF.cjs +518 -0
- package/dist/chunk-S5FPOCQF.cjs.map +1 -0
- package/dist/{chunk-O6NA3Z43.cjs → chunk-SQAX4OW6.cjs} +167 -12
- package/dist/chunk-SQAX4OW6.cjs.map +1 -0
- package/dist/{chunk-IHJDOC3A.js → chunk-T2UNO766.js} +16 -7
- package/dist/chunk-T2UNO766.js.map +1 -0
- package/dist/{chunk-FVNT7VTO.js → chunk-TARWUQG6.js} +243 -166
- package/dist/chunk-TARWUQG6.js.map +1 -0
- package/dist/{chunk-76K3IYWM.js → chunk-TS7B26US.js} +3 -3
- package/dist/{chunk-76K3IYWM.js.map → chunk-TS7B26US.js.map} +1 -1
- package/dist/{chunk-Y6ROD72V.cjs → chunk-UIGRFDO6.cjs} +4 -4
- package/dist/{chunk-Y6ROD72V.cjs.map → chunk-UIGRFDO6.cjs.map} +1 -1
- package/dist/{chunk-GRBGQ2GE.js → chunk-UVHSM2GU.cjs} +9 -3
- package/dist/chunk-UVHSM2GU.cjs.map +1 -0
- package/dist/{chunk-VSM3NLUX.cjs → chunk-VRFSEZBA.cjs} +334 -138
- package/dist/chunk-VRFSEZBA.cjs.map +1 -0
- package/dist/{chunk-JXESKY4A.js → chunk-WDRA4WKG.js} +163 -9
- package/dist/chunk-WDRA4WKG.js.map +1 -0
- package/dist/{chunk-RXDJL5QT.js → chunk-WMAMOYRR.js} +14 -14
- package/dist/chunk-WMAMOYRR.js.map +1 -0
- package/dist/{chunk-2OTDXX73.js → chunk-XY337TTF.js} +24 -10
- package/dist/chunk-XY337TTF.js.map +1 -0
- package/dist/{chunk-4IKJAKCD.cjs → chunk-Y24HI6ND.cjs} +108 -23
- package/dist/chunk-Y24HI6ND.cjs.map +1 -0
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/di/index.cjs +10 -2
- package/dist/di/index.d.ts +1 -1
- package/dist/di/index.d.ts.map +1 -1
- package/dist/di/index.js +1 -1
- package/dist/evals/base.d.ts +10 -2
- package/dist/evals/base.d.ts.map +1 -1
- package/dist/evals/base.test-utils.d.ts +25 -25
- package/dist/evals/index.cjs +9 -9
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/evals/types.d.ts +8 -8
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +18 -14
- package/dist/llm/index.d.ts +2 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/aisdk/v5/model.d.ts.map +1 -1
- package/dist/llm/model/gateway-resolver.d.ts.map +1 -1
- package/dist/llm/model/gateways/azure.d.ts +36 -0
- package/dist/llm/model/gateways/azure.d.ts.map +1 -0
- package/dist/llm/model/gateways/base.d.ts +3 -6
- package/dist/llm/model/gateways/base.d.ts.map +1 -1
- package/dist/llm/model/gateways/index.d.ts +4 -1
- package/dist/llm/model/gateways/index.d.ts.map +1 -1
- package/dist/llm/model/gateways/models-dev.d.ts +2 -2
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
- package/dist/llm/model/gateways/netlify.d.ts +2 -2
- package/dist/llm/model/gateways/netlify.d.ts.map +1 -1
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-registry.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +245 -12
- package/dist/llm/model/registry-generator.d.ts +12 -0
- package/dist/llm/model/registry-generator.d.ts.map +1 -1
- package/dist/llm/model/router.d.ts.map +1 -1
- package/dist/logger/constants.d.ts +1 -0
- package/dist/logger/constants.d.ts.map +1 -1
- package/dist/logger/index.cjs +11 -11
- package/dist/logger/index.js +2 -2
- package/dist/logger/transport.d.ts +1 -1
- package/dist/logger/transport.d.ts.map +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/loop.d.ts.map +1 -1
- package/dist/loop/network/index.d.ts +2 -2
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
- package/dist/loop/test-utils/generateText.d.ts.map +1 -1
- package/dist/loop/test-utils/resultObject.d.ts.map +1 -1
- package/dist/loop/test-utils/streamObject.d.ts.map +1 -1
- package/dist/loop/types.d.ts +13 -2
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +96 -96
- package/dist/loop/workflows/agentic-execution/index.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +65 -65
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +32 -32
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +97 -97
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +32 -32
- package/dist/loop/workflows/stream.d.ts +1 -1
- package/dist/loop/workflows/stream.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +64 -9
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/types.d.ts +2 -2
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/memory/index.cjs +21 -327
- package/dist/memory/index.cjs.map +1 -1
- package/dist/memory/index.js +1 -327
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/memory.d.ts +22 -18
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/memory/mock.d.ts +15 -14
- package/dist/memory/mock.d.ts.map +1 -1
- package/dist/memory/types.d.ts +69 -11
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-F6MTIYTO.js +3 -0
- package/dist/{models-dev-6PRLJKVZ.js.map → models-dev-F6MTIYTO.js.map} +1 -1
- package/dist/models-dev-XIVR5EJV.cjs +12 -0
- package/dist/{models-dev-WHMI5G6Y.cjs.map → models-dev-XIVR5EJV.cjs.map} +1 -1
- package/dist/netlify-C2YBIK7A.js +3 -0
- package/dist/{netlify-EBQ6YUC6.js.map → netlify-C2YBIK7A.js.map} +1 -1
- package/dist/netlify-XWROOTP4.cjs +12 -0
- package/dist/{netlify-46I3SNNV.cjs.map → netlify-XWROOTP4.cjs.map} +1 -1
- package/dist/observability/index.cjs +16 -8
- package/dist/observability/index.js +1 -1
- package/dist/observability/types/tracing.d.ts +165 -3
- package/dist/observability/types/tracing.d.ts.map +1 -1
- package/dist/observability/utils.d.ts +47 -1
- package/dist/observability/utils.d.ts.map +1 -1
- package/dist/processors/index.cjs +35 -11
- package/dist/processors/index.d.ts +101 -23
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/memory/index.d.ts +7 -0
- package/dist/processors/memory/index.d.ts.map +1 -0
- package/dist/processors/memory/message-history.d.ts +43 -0
- package/dist/processors/memory/message-history.d.ts.map +1 -0
- package/dist/processors/memory/semantic-recall.d.ts +152 -0
- package/dist/processors/memory/semantic-recall.d.ts.map +1 -0
- package/dist/processors/memory/working-memory.d.ts +65 -0
- package/dist/processors/memory/working-memory.d.ts.map +1 -0
- package/dist/processors/processors/batch-parts.d.ts +1 -1
- package/dist/processors/processors/batch-parts.d.ts.map +1 -1
- package/dist/processors/processors/index.d.ts +2 -1
- package/dist/processors/processors/index.d.ts.map +1 -1
- package/dist/processors/processors/language-detector.d.ts +15 -1
- package/dist/processors/processors/language-detector.d.ts.map +1 -1
- package/dist/processors/processors/moderation.d.ts +15 -1
- package/dist/processors/processors/moderation.d.ts.map +1 -1
- package/dist/processors/processors/pii-detector.d.ts +15 -1
- package/dist/processors/processors/pii-detector.d.ts.map +1 -1
- package/dist/processors/processors/prompt-injection-detector.d.ts +15 -1
- package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
- package/dist/processors/processors/structured-output.d.ts +3 -2
- package/dist/processors/processors/structured-output.d.ts.map +1 -1
- package/dist/processors/processors/system-prompt-scrubber.d.ts +1 -1
- package/dist/processors/processors/system-prompt-scrubber.d.ts.map +1 -1
- package/dist/processors/processors/token-limiter.d.ts +22 -12
- package/dist/processors/processors/token-limiter.d.ts.map +1 -1
- package/dist/processors/processors/tool-call-filter.d.ts +28 -0
- package/dist/processors/processors/tool-call-filter.d.ts.map +1 -0
- package/dist/processors/processors/unicode-normalizer.d.ts +1 -1
- package/dist/processors/processors/unicode-normalizer.d.ts.map +1 -1
- package/dist/processors/runner.d.ts +35 -4
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/provider-registry-BXX7CA3H.cjs +40 -0
- package/dist/{provider-registry-RP2W4B24.cjs.map → provider-registry-BXX7CA3H.cjs.map} +1 -1
- package/dist/provider-registry-GRYJWVEM.js +3 -0
- package/dist/{provider-registry-HDG6UMUC.js.map → provider-registry-GRYJWVEM.js.map} +1 -1
- package/dist/provider-registry.json +547 -25
- package/dist/{registry-generator-JPCV47SC.cjs → registry-generator-34SC4TAU.cjs} +21 -6
- package/dist/registry-generator-34SC4TAU.cjs.map +1 -0
- package/dist/{registry-generator-XD4FPZTU.js → registry-generator-UMTNPBJX.js} +21 -7
- package/dist/registry-generator-UMTNPBJX.js.map +1 -0
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +1 -1
- package/dist/request-context/index.cjs +10 -2
- package/dist/request-context/index.d.ts +26 -0
- package/dist/request-context/index.d.ts.map +1 -1
- package/dist/request-context/index.js +1 -1
- package/dist/server/base.d.ts +51 -0
- package/dist/server/base.d.ts.map +1 -0
- package/dist/server/composite-auth.d.ts +9 -0
- package/dist/server/composite-auth.d.ts.map +1 -0
- package/dist/server/index.cjs +112 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +4 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +109 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/simple-auth.d.ts +27 -0
- package/dist/server/simple-auth.d.ts.map +1 -0
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +37 -29
- package/dist/storage/index.js +1 -1
- package/dist/storage/types.d.ts +1 -1
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/utils.d.ts +44 -0
- package/dist/storage/utils.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
- package/dist/stream/RunOutput.d.ts +2 -2
- package/dist/stream/RunOutput.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts +1 -1
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
- package/dist/stream/base/base.d.ts +1 -1
- package/dist/stream/base/base.d.ts.map +1 -1
- package/dist/stream/base/output-format-handlers.d.ts +1 -1
- package/dist/stream/base/output-format-handlers.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +9 -2
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.cjs +36 -2
- package/dist/test-utils/llm-mock.cjs.map +1 -1
- package/dist/test-utils/llm-mock.d.ts +3 -0
- package/dist/test-utils/llm-mock.d.ts.map +1 -1
- package/dist/test-utils/llm-mock.js +32 -2
- package/dist/test-utils/llm-mock.js.map +1 -1
- package/dist/tools/index.cjs +6 -6
- package/dist/tools/index.js +2 -2
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/stream.d.ts +2 -1
- package/dist/tools/stream.d.ts.map +1 -1
- package/dist/tools/tool-builder/builder.d.ts +2 -0
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/tools/tool.d.ts +19 -6
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/tools/types.d.ts +28 -3
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/validation.d.ts +14 -2
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +22 -22
- package/dist/utils.d.ts +2 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/filter/index.cjs +7 -189
- package/dist/vector/filter/index.cjs.map +1 -1
- package/dist/vector/filter/index.js +1 -190
- package/dist/vector/filter/index.js.map +1 -1
- package/dist/vector/index.cjs +7 -2
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.ts +1 -0
- package/dist/vector/index.d.ts.map +1 -1
- package/dist/vector/index.js +2 -1
- package/dist/vector/index.js.map +1 -1
- package/dist/vector/types.d.ts +86 -3
- package/dist/vector/types.d.ts.map +1 -1
- package/dist/vector/vector.d.ts +39 -2
- package/dist/vector/vector.d.ts.map +1 -1
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/index.js +1 -1
- package/dist/workflows/default.d.ts +176 -281
- package/dist/workflows/default.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +4 -2
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/handlers/control-flow.d.ts +135 -0
- package/dist/workflows/handlers/control-flow.d.ts.map +1 -0
- package/dist/workflows/handlers/entry.d.ts +45 -0
- package/dist/workflows/handlers/entry.d.ts.map +1 -0
- package/dist/workflows/handlers/sleep.d.ts +62 -0
- package/dist/workflows/handlers/sleep.d.ts.map +1 -0
- package/dist/workflows/handlers/step.d.ts +60 -0
- package/dist/workflows/handlers/step.d.ts.map +1 -0
- package/dist/workflows/index.cjs +23 -19
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts +1 -0
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +159 -5
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/utils.d.ts +7 -0
- package/dist/workflows/utils.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +12 -8
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +12 -10
- package/src/llm/model/provider-types.generated.d.ts +245 -12
- package/dist/chunk-2NVBZKZI.cjs.map +0 -1
- package/dist/chunk-2OTDXX73.js.map +0 -1
- package/dist/chunk-3PSWNGBF.js +0 -3
- package/dist/chunk-3PSWNGBF.js.map +0 -1
- package/dist/chunk-3RW5EMSB.js.map +0 -1
- package/dist/chunk-3W5RQCCY.cjs +0 -440
- package/dist/chunk-3W5RQCCY.cjs.map +0 -1
- package/dist/chunk-436FFEF6.js +0 -34
- package/dist/chunk-436FFEF6.js.map +0 -1
- package/dist/chunk-4IKJAKCD.cjs.map +0 -1
- package/dist/chunk-4RXG622P.cjs.map +0 -1
- package/dist/chunk-5WXEYDFI.cjs.map +0 -1
- package/dist/chunk-CYVNOIXS.cjs.map +0 -1
- package/dist/chunk-D6EDHNGV.js.map +0 -1
- package/dist/chunk-DSNPWVIG.cjs.map +0 -1
- package/dist/chunk-E7K4FTLN.cjs.map +0 -1
- package/dist/chunk-FVNT7VTO.js.map +0 -1
- package/dist/chunk-GRBGQ2GE.js.map +0 -1
- package/dist/chunk-HBJPYQRN.cjs.map +0 -1
- package/dist/chunk-HGNRQ3OG.js.map +0 -1
- package/dist/chunk-IHJDOC3A.js.map +0 -1
- package/dist/chunk-IWB65P37.cjs.map +0 -1
- package/dist/chunk-IWQDBVJK.js.map +0 -1
- package/dist/chunk-J7O6WENZ.cjs.map +0 -1
- package/dist/chunk-JXESKY4A.js.map +0 -1
- package/dist/chunk-KEURQGCQ.js.map +0 -1
- package/dist/chunk-KIZIOFZC.js.map +0 -1
- package/dist/chunk-KJ2SW6VA.js.map +0 -1
- package/dist/chunk-LRSB62Z6.cjs.map +0 -1
- package/dist/chunk-MDKPL2R2.js.map +0 -1
- package/dist/chunk-O6NA3Z43.cjs.map +0 -1
- package/dist/chunk-PE3V7GUL.cjs +0 -4
- package/dist/chunk-PE3V7GUL.cjs.map +0 -1
- package/dist/chunk-RXDJL5QT.js.map +0 -1
- package/dist/chunk-S6OEQHEI.cjs.map +0 -1
- package/dist/chunk-TQTAMPSC.js.map +0 -1
- package/dist/chunk-U7VECK2G.js.map +0 -1
- package/dist/chunk-V3VLOOSW.cjs +0 -36
- package/dist/chunk-V3VLOOSW.cjs.map +0 -1
- package/dist/chunk-VSM3NLUX.cjs.map +0 -1
- package/dist/chunk-VZC4BWWH.cjs.map +0 -1
- package/dist/chunk-W3DD3XP5.js.map +0 -1
- package/dist/chunk-WQSGX6XA.cjs.map +0 -1
- package/dist/chunk-WTYNK7Q4.js.map +0 -1
- package/dist/chunk-XXBWX7DT.js.map +0 -1
- package/dist/chunk-Y63IFHEZ.cjs.map +0 -1
- package/dist/chunk-ZCVTH3CH.cjs.map +0 -1
- package/dist/models-dev-6PRLJKVZ.js +0 -3
- package/dist/models-dev-WHMI5G6Y.cjs +0 -12
- package/dist/netlify-46I3SNNV.cjs +0 -12
- package/dist/netlify-EBQ6YUC6.js +0 -3
- package/dist/provider-registry-HDG6UMUC.js +0 -3
- package/dist/provider-registry-RP2W4B24.cjs +0 -40
- package/dist/registry-generator-JPCV47SC.cjs.map +0 -1
- package/dist/registry-generator-XD4FPZTU.js.map +0 -1
|
@@ -124,6 +124,8 @@ var provider_registry_default = {
|
|
|
124
124
|
"grok-3-mini-fast-latest",
|
|
125
125
|
"grok-3-mini-latest",
|
|
126
126
|
"grok-4",
|
|
127
|
+
"grok-4-1-fast",
|
|
128
|
+
"grok-4-1-fast-non-reasoning",
|
|
127
129
|
"grok-4-fast",
|
|
128
130
|
"grok-4-fast-non-reasoning",
|
|
129
131
|
"grok-beta",
|
|
@@ -214,6 +216,15 @@ var provider_registry_default = {
|
|
|
214
216
|
docUrl: "https://console.groq.com/docs/models",
|
|
215
217
|
gateway: "models.dev"
|
|
216
218
|
},
|
|
219
|
+
bailing: {
|
|
220
|
+
url: "https://api.tbox.cn/api/llm/v1/chat/completions",
|
|
221
|
+
apiKeyEnvVar: "BAILING_API_TOKEN",
|
|
222
|
+
apiKeyHeader: "Authorization",
|
|
223
|
+
name: "Bailing",
|
|
224
|
+
models: ["Ling-1T", "Ring-1T"],
|
|
225
|
+
docUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/intro",
|
|
226
|
+
gateway: "models.dev"
|
|
227
|
+
},
|
|
217
228
|
mistral: {
|
|
218
229
|
url: "https://api.mistral.ai/v1",
|
|
219
230
|
apiKeyEnvVar: "MISTRAL_API_KEY",
|
|
@@ -267,7 +278,7 @@ var provider_registry_default = {
|
|
|
267
278
|
"anthropic/claude-4-sonnet",
|
|
268
279
|
"anthropic/claude-4.5-sonnet",
|
|
269
280
|
"anthropic/claude-haiku-4.5",
|
|
270
|
-
"
|
|
281
|
+
"anthropic/claude-opus-4.5",
|
|
271
282
|
"deepseek/deepseek-r1",
|
|
272
283
|
"deepseek/deepseek-r1-distill-llama-70b",
|
|
273
284
|
"deepseek/deepseek-v3.1-terminus",
|
|
@@ -280,6 +291,7 @@ var provider_registry_default = {
|
|
|
280
291
|
"google/gemini-2.5-flash-lite-preview-09-2025",
|
|
281
292
|
"google/gemini-2.5-flash-preview-09-2025",
|
|
282
293
|
"google/gemini-2.5-pro",
|
|
294
|
+
"google/gemini-3-pro-preview",
|
|
283
295
|
"meta/llama-3.3-70b",
|
|
284
296
|
"meta/llama-4-maverick",
|
|
285
297
|
"meta/llama-4-scout",
|
|
@@ -506,7 +518,8 @@ var provider_registry_default = {
|
|
|
506
518
|
"deepseek-ai/DeepSeek-V3-0324",
|
|
507
519
|
"deepseek-ai/DeepSeek-V3.1",
|
|
508
520
|
"deepseek-ai/DeepSeek-V3.1-Terminus",
|
|
509
|
-
"deepseek-ai/DeepSeek-V3.2
|
|
521
|
+
"deepseek-ai/DeepSeek-V3.2",
|
|
522
|
+
"deepseek-ai/DeepSeek-V3.2-Speciale",
|
|
510
523
|
"meituan-longcat/LongCat-Flash-Chat-FP8",
|
|
511
524
|
"microsoft/MAI-DS-R1-FP8",
|
|
512
525
|
"moonshotai/Kimi-K2-Instruct-0905",
|
|
@@ -516,6 +529,7 @@ var provider_registry_default = {
|
|
|
516
529
|
"rednote-hilab/dots.ocr",
|
|
517
530
|
"tngtech/DeepSeek-R1T-Chimera",
|
|
518
531
|
"tngtech/DeepSeek-TNG-R1T2-Chimera",
|
|
532
|
+
"tngtech/TNG-R1T-Chimera",
|
|
519
533
|
"unsloth/Mistral-Nemo-Instruct-2407",
|
|
520
534
|
"unsloth/Mistral-Small-24B-Instruct-2501",
|
|
521
535
|
"unsloth/gemma-3-12b-it",
|
|
@@ -528,6 +542,45 @@ var provider_registry_default = {
|
|
|
528
542
|
docUrl: "https://llm.chutes.ai/v1/models",
|
|
529
543
|
gateway: "models.dev"
|
|
530
544
|
},
|
|
545
|
+
agentrouter: {
|
|
546
|
+
url: "https://agentrouter.org/v1",
|
|
547
|
+
apiKeyEnvVar: "AGENTROUTER_API_KEY",
|
|
548
|
+
apiKeyHeader: "Authorization",
|
|
549
|
+
name: "AgentRouter",
|
|
550
|
+
models: [
|
|
551
|
+
"claude-3-5-haiku-20241022",
|
|
552
|
+
"claude-3-5-sonnet-20240620",
|
|
553
|
+
"claude-3-5-sonnet-20241022",
|
|
554
|
+
"claude-3-7-sonnet-20250219",
|
|
555
|
+
"claude-3-7-sonnet-20250219-thinking",
|
|
556
|
+
"claude-haiku-4-5-20251001",
|
|
557
|
+
"claude-opus-4-20250514",
|
|
558
|
+
"claude-opus-4-20250514-thinking",
|
|
559
|
+
"claude-sonnet-4-20250514",
|
|
560
|
+
"claude-sonnet-4-20250514-thinking",
|
|
561
|
+
"claude-sonnet-4-5-20250929",
|
|
562
|
+
"deepseek-r1-0528",
|
|
563
|
+
"deepseek-v3.1",
|
|
564
|
+
"deepseek-v3.2",
|
|
565
|
+
"gemini-3-pro-preview",
|
|
566
|
+
"glm-4.5",
|
|
567
|
+
"glm-4.6",
|
|
568
|
+
"gpt-5",
|
|
569
|
+
"gpt-5.1",
|
|
570
|
+
"kimi-k2-thinking"
|
|
571
|
+
],
|
|
572
|
+
docUrl: "https://docs.agentrouter.org",
|
|
573
|
+
gateway: "models.dev"
|
|
574
|
+
},
|
|
575
|
+
"kimi-for-coding": {
|
|
576
|
+
url: "https://api.kimi.com/coding/v1",
|
|
577
|
+
apiKeyEnvVar: "KIMI_API_KEY",
|
|
578
|
+
apiKeyHeader: "Authorization",
|
|
579
|
+
name: "Kimi For Coding",
|
|
580
|
+
models: ["kimi-k2-thinking"],
|
|
581
|
+
docUrl: "https://www.kimi.com/coding/docs/en/third-party-agents.html",
|
|
582
|
+
gateway: "models.dev"
|
|
583
|
+
},
|
|
531
584
|
cortecs: {
|
|
532
585
|
url: "https://api.cortecs.ai/v1",
|
|
533
586
|
apiKeyEnvVar: "CORTECS_API_KEY",
|
|
@@ -644,6 +697,88 @@ var provider_registry_default = {
|
|
|
644
697
|
docUrl: "https://docs.baseten.co/development/model-apis/overview",
|
|
645
698
|
gateway: "models.dev"
|
|
646
699
|
},
|
|
700
|
+
siliconflow: {
|
|
701
|
+
url: "https://api.siliconflow.com/v1",
|
|
702
|
+
apiKeyEnvVar: "SILICONFLOW_API_KEY",
|
|
703
|
+
apiKeyHeader: "Authorization",
|
|
704
|
+
name: "SiliconFlow",
|
|
705
|
+
models: [
|
|
706
|
+
"baidu-ernie-4.5-300b-a47b",
|
|
707
|
+
"bytedance-seed-seed-oss-36b-instruct",
|
|
708
|
+
"deepseek-ai-deepseek-r1",
|
|
709
|
+
"deepseek-ai-deepseek-r1-distill-qwen-14b",
|
|
710
|
+
"deepseek-ai-deepseek-r1-distill-qwen-32b",
|
|
711
|
+
"deepseek-ai-deepseek-r1-distill-qwen-7b",
|
|
712
|
+
"deepseek-ai-deepseek-v3",
|
|
713
|
+
"deepseek-ai-deepseek-v3.1",
|
|
714
|
+
"deepseek-ai-deepseek-v3.1-terminus",
|
|
715
|
+
"deepseek-ai-deepseek-v3.2-exp",
|
|
716
|
+
"deepseek-ai-deepseek-vl2",
|
|
717
|
+
"inclusionai-ling-flash-2.0",
|
|
718
|
+
"inclusionai-ling-mini-2.0",
|
|
719
|
+
"inclusionai-ring-flash-2.0",
|
|
720
|
+
"meta-llama-meta-llama-3.1-8b-instruct",
|
|
721
|
+
"minimaxai-minimax-m1-80k",
|
|
722
|
+
"minimaxai-minimax-m2",
|
|
723
|
+
"moonshotai-kimi-dev-72b",
|
|
724
|
+
"moonshotai-kimi-k2-instruct",
|
|
725
|
+
"moonshotai-kimi-k2-instruct-0905",
|
|
726
|
+
"moonshotai-kimi-k2-thinking",
|
|
727
|
+
"nex-agi-deepseek-v3.1-nex-n1",
|
|
728
|
+
"openai-gpt-oss-120b",
|
|
729
|
+
"openai-gpt-oss-20b",
|
|
730
|
+
"qwen-qwen2.5-14b-instruct",
|
|
731
|
+
"qwen-qwen2.5-32b-instruct",
|
|
732
|
+
"qwen-qwen2.5-72b-instruct",
|
|
733
|
+
"qwen-qwen2.5-72b-instruct-128k",
|
|
734
|
+
"qwen-qwen2.5-7b-instruct",
|
|
735
|
+
"qwen-qwen2.5-coder-32b-instruct",
|
|
736
|
+
"qwen-qwen2.5-vl-32b-instruct",
|
|
737
|
+
"qwen-qwen2.5-vl-72b-instruct",
|
|
738
|
+
"qwen-qwen2.5-vl-7b-instruct",
|
|
739
|
+
"qwen-qwen3-14b",
|
|
740
|
+
"qwen-qwen3-235b-a22b",
|
|
741
|
+
"qwen-qwen3-235b-a22b-instruct-2507",
|
|
742
|
+
"qwen-qwen3-235b-a22b-thinking-2507",
|
|
743
|
+
"qwen-qwen3-30b-a3b",
|
|
744
|
+
"qwen-qwen3-30b-a3b-instruct-2507",
|
|
745
|
+
"qwen-qwen3-30b-a3b-thinking-2507",
|
|
746
|
+
"qwen-qwen3-32b",
|
|
747
|
+
"qwen-qwen3-8b",
|
|
748
|
+
"qwen-qwen3-coder-30b-a3b-instruct",
|
|
749
|
+
"qwen-qwen3-coder-480b-a35b-instruct",
|
|
750
|
+
"qwen-qwen3-next-80b-a3b-instruct",
|
|
751
|
+
"qwen-qwen3-next-80b-a3b-thinking",
|
|
752
|
+
"qwen-qwen3-omni-30b-a3b-captioner",
|
|
753
|
+
"qwen-qwen3-omni-30b-a3b-instruct",
|
|
754
|
+
"qwen-qwen3-omni-30b-a3b-thinking",
|
|
755
|
+
"qwen-qwen3-vl-235b-a22b-instruct",
|
|
756
|
+
"qwen-qwen3-vl-235b-a22b-thinking",
|
|
757
|
+
"qwen-qwen3-vl-30b-a3b-instruct",
|
|
758
|
+
"qwen-qwen3-vl-30b-a3b-thinking",
|
|
759
|
+
"qwen-qwen3-vl-32b-instruct",
|
|
760
|
+
"qwen-qwen3-vl-32b-thinking",
|
|
761
|
+
"qwen-qwen3-vl-8b-instruct",
|
|
762
|
+
"qwen-qwen3-vl-8b-thinking",
|
|
763
|
+
"qwen-qwq-32b",
|
|
764
|
+
"stepfun-ai-step3",
|
|
765
|
+
"tencent-hunyuan-a13b-instruct",
|
|
766
|
+
"tencent-hunyuan-mt-7b",
|
|
767
|
+
"thudm-glm-4-32b-0414",
|
|
768
|
+
"thudm-glm-4-9b-0414",
|
|
769
|
+
"thudm-glm-4.1v-9b-thinking",
|
|
770
|
+
"thudm-glm-z1-32b-0414",
|
|
771
|
+
"thudm-glm-z1-9b-0414",
|
|
772
|
+
"z-ai-glm-4.5",
|
|
773
|
+
"z-ai-glm-4.5-air",
|
|
774
|
+
"zai-org-glm-4.5",
|
|
775
|
+
"zai-org-glm-4.5-air",
|
|
776
|
+
"zai-org-glm-4.5v",
|
|
777
|
+
"zai-org-glm-4.6"
|
|
778
|
+
],
|
|
779
|
+
docUrl: "https://cloud.siliconflow.com/models",
|
|
780
|
+
gateway: "models.dev"
|
|
781
|
+
},
|
|
647
782
|
huggingface: {
|
|
648
783
|
url: "https://router.huggingface.co/v1",
|
|
649
784
|
apiKeyEnvVar: "HF_TOKEN",
|
|
@@ -676,14 +811,15 @@ var provider_registry_default = {
|
|
|
676
811
|
models: [
|
|
677
812
|
"alpha-doubao-seed-code",
|
|
678
813
|
"alpha-gd4",
|
|
679
|
-
"alpha-kimi-k2-thinking",
|
|
680
814
|
"alpha-minimax-m2",
|
|
681
815
|
"big-pickle",
|
|
682
816
|
"claude-3-5-haiku",
|
|
683
817
|
"claude-haiku-4-5",
|
|
684
818
|
"claude-opus-4-1",
|
|
819
|
+
"claude-opus-4-5",
|
|
685
820
|
"claude-sonnet-4",
|
|
686
821
|
"claude-sonnet-4-5",
|
|
822
|
+
"gemini-3-pro",
|
|
687
823
|
"glm-4.6",
|
|
688
824
|
"gpt-5",
|
|
689
825
|
"gpt-5-codex",
|
|
@@ -692,6 +828,7 @@ var provider_registry_default = {
|
|
|
692
828
|
"gpt-5.1-codex",
|
|
693
829
|
"grok-code",
|
|
694
830
|
"kimi-k2",
|
|
831
|
+
"kimi-k2-thinking",
|
|
695
832
|
"qwen3-coder"
|
|
696
833
|
],
|
|
697
834
|
docUrl: "https://opencode.ai/docs/zen",
|
|
@@ -725,7 +862,7 @@ var provider_registry_default = {
|
|
|
725
862
|
url: "https://api.minimax.io/anthropic/v1",
|
|
726
863
|
apiKeyEnvVar: "MINIMAX_API_KEY",
|
|
727
864
|
apiKeyHeader: "Authorization",
|
|
728
|
-
name: "
|
|
865
|
+
name: "MiniMax",
|
|
729
866
|
models: ["MiniMax-M2"],
|
|
730
867
|
docUrl: "https://platform.minimax.io/docs/guides/quickstart",
|
|
731
868
|
gateway: "models.dev"
|
|
@@ -844,6 +981,15 @@ var provider_registry_default = {
|
|
|
844
981
|
docUrl: "https://docs.bigmodel.cn/cn/coding-plan/overview",
|
|
845
982
|
gateway: "models.dev"
|
|
846
983
|
},
|
|
984
|
+
"minimax-cn": {
|
|
985
|
+
url: "https://api.minimaxi.com/anthropic/v1",
|
|
986
|
+
apiKeyEnvVar: "MINIMAX_API_KEY",
|
|
987
|
+
apiKeyHeader: "Authorization",
|
|
988
|
+
name: "MiniMax (China)",
|
|
989
|
+
models: ["MiniMax-M2"],
|
|
990
|
+
docUrl: "https://platform.minimaxi.com/docs/guides/quickstart",
|
|
991
|
+
gateway: "models.dev"
|
|
992
|
+
},
|
|
847
993
|
perplexity: {
|
|
848
994
|
url: "https://api.perplexity.ai",
|
|
849
995
|
apiKeyEnvVar: "PERPLEXITY_API_KEY",
|
|
@@ -863,6 +1009,7 @@ var provider_registry_default = {
|
|
|
863
1009
|
"anthropic/claude-haiku-4.5",
|
|
864
1010
|
"anthropic/claude-opus-4",
|
|
865
1011
|
"anthropic/claude-opus-4.1",
|
|
1012
|
+
"anthropic/claude-opus-4.5",
|
|
866
1013
|
"anthropic/claude-sonnet-4",
|
|
867
1014
|
"anthropic/claude-sonnet-4.5",
|
|
868
1015
|
"cognitivecomputations/dolphin3.0-mistral-24b",
|
|
@@ -877,6 +1024,7 @@ var provider_registry_default = {
|
|
|
877
1024
|
"deepseek/deepseek-v3-base:free",
|
|
878
1025
|
"deepseek/deepseek-v3.1-terminus",
|
|
879
1026
|
"deepseek/deepseek-v3.1-terminus:exacto",
|
|
1027
|
+
"deepseek/deepseek-v3.2",
|
|
880
1028
|
"featherless/qwerky-72b",
|
|
881
1029
|
"google/gemini-2.0-flash-001",
|
|
882
1030
|
"google/gemini-2.0-flash-exp:free",
|
|
@@ -887,6 +1035,7 @@ var provider_registry_default = {
|
|
|
887
1035
|
"google/gemini-2.5-pro",
|
|
888
1036
|
"google/gemini-2.5-pro-preview-05-06",
|
|
889
1037
|
"google/gemini-2.5-pro-preview-06-05",
|
|
1038
|
+
"google/gemini-3-pro-preview",
|
|
890
1039
|
"google/gemma-2-9b-it:free",
|
|
891
1040
|
"google/gemma-3-12b-it",
|
|
892
1041
|
"google/gemma-3-27b-it",
|
|
@@ -939,15 +1088,8 @@ var provider_registry_default = {
|
|
|
939
1088
|
"openai/gpt-oss-120b",
|
|
940
1089
|
"openai/gpt-oss-120b:exacto",
|
|
941
1090
|
"openai/gpt-oss-20b",
|
|
1091
|
+
"openai/gpt-oss-safeguard-20b",
|
|
942
1092
|
"openai/o4-mini",
|
|
943
|
-
"openrouter/cypher-alpha:free",
|
|
944
|
-
"openrouter/horizon-alpha",
|
|
945
|
-
"openrouter/horizon-beta",
|
|
946
|
-
"openrouter/polaris-alpha",
|
|
947
|
-
"openrouter/sherlock-dash-alpha",
|
|
948
|
-
"openrouter/sherlock-think-alpha",
|
|
949
|
-
"openrouter/sonoma-dusk-alpha",
|
|
950
|
-
"openrouter/sonoma-sky-alpha",
|
|
951
1093
|
"qwen/qwen-2.5-coder-32b-instruct",
|
|
952
1094
|
"qwen/qwen2.5-vl-32b-instruct:free",
|
|
953
1095
|
"qwen/qwen2.5-vl-72b-instruct",
|
|
@@ -963,6 +1105,7 @@ var provider_registry_default = {
|
|
|
963
1105
|
"qwen/qwen3-32b:free",
|
|
964
1106
|
"qwen/qwen3-8b:free",
|
|
965
1107
|
"qwen/qwen3-coder",
|
|
1108
|
+
"qwen/qwen3-coder-flash",
|
|
966
1109
|
"qwen/qwen3-coder:exacto",
|
|
967
1110
|
"qwen/qwen3-coder:free",
|
|
968
1111
|
"qwen/qwen3-max",
|
|
@@ -979,6 +1122,7 @@ var provider_registry_default = {
|
|
|
979
1122
|
"x-ai/grok-3-mini-beta",
|
|
980
1123
|
"x-ai/grok-4",
|
|
981
1124
|
"x-ai/grok-4-fast",
|
|
1125
|
+
"x-ai/grok-4.1-fast",
|
|
982
1126
|
"x-ai/grok-code-fast-1",
|
|
983
1127
|
"z-ai/glm-4.5",
|
|
984
1128
|
"z-ai/glm-4.5-air",
|
|
@@ -1189,10 +1333,12 @@ var provider_registry_default = {
|
|
|
1189
1333
|
"anthropic/claude-haiku-4-5",
|
|
1190
1334
|
"anthropic/claude-opus-4",
|
|
1191
1335
|
"anthropic/claude-opus-4-1",
|
|
1336
|
+
"anthropic/claude-opus-4-5",
|
|
1192
1337
|
"anthropic/claude-sonnet-4",
|
|
1193
1338
|
"anthropic/claude-sonnet-4-5",
|
|
1194
1339
|
"google/gemini-2.5-flash",
|
|
1195
1340
|
"google/gemini-2.5-pro",
|
|
1341
|
+
"google/gemini-3-pro-preview",
|
|
1196
1342
|
"openai/gpt-4.1",
|
|
1197
1343
|
"openai/gpt-4.1-mini",
|
|
1198
1344
|
"openai/gpt-4o-mini",
|
|
@@ -1243,6 +1389,8 @@ var provider_registry_default = {
|
|
|
1243
1389
|
"claude-opus-4-1",
|
|
1244
1390
|
"claude-opus-4-1-20250805",
|
|
1245
1391
|
"claude-opus-4-20250514",
|
|
1392
|
+
"claude-opus-4-5",
|
|
1393
|
+
"claude-opus-4-5-20251101",
|
|
1246
1394
|
"claude-sonnet-4-0",
|
|
1247
1395
|
"claude-sonnet-4-20250514",
|
|
1248
1396
|
"claude-sonnet-4-5",
|
|
@@ -1265,6 +1413,7 @@ var provider_registry_default = {
|
|
|
1265
1413
|
"accounts/fireworks/models/gpt-oss-120b",
|
|
1266
1414
|
"accounts/fireworks/models/gpt-oss-20b",
|
|
1267
1415
|
"accounts/fireworks/models/kimi-k2-instruct",
|
|
1416
|
+
"accounts/fireworks/models/kimi-k2-thinking",
|
|
1268
1417
|
"accounts/fireworks/models/minimax-m2",
|
|
1269
1418
|
"accounts/fireworks/models/qwen3-235b-a22b",
|
|
1270
1419
|
"accounts/fireworks/models/qwen3-coder-480b-a35b-instruct"
|
|
@@ -1272,6 +1421,33 @@ var provider_registry_default = {
|
|
|
1272
1421
|
docUrl: "https://fireworks.ai/docs/",
|
|
1273
1422
|
gateway: "models.dev"
|
|
1274
1423
|
},
|
|
1424
|
+
"io-net": {
|
|
1425
|
+
url: "https://api.intelligence.io.solutions/api/v1",
|
|
1426
|
+
apiKeyEnvVar: "IOINTELLIGENCE_API_KEY",
|
|
1427
|
+
apiKeyHeader: "Authorization",
|
|
1428
|
+
name: "IO.NET",
|
|
1429
|
+
models: [
|
|
1430
|
+
"Intel/Qwen3-Coder-480B-A35B-Instruct-int4-mixed-ar",
|
|
1431
|
+
"Qwen/Qwen2.5-VL-32B-Instruct",
|
|
1432
|
+
"Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
1433
|
+
"Qwen/Qwen3-Next-80B-A3B-Instruct",
|
|
1434
|
+
"deepseek-ai/DeepSeek-R1-0528",
|
|
1435
|
+
"meta-llama/Llama-3.2-90B-Vision-Instruct",
|
|
1436
|
+
"meta-llama/Llama-3.3-70B-Instruct",
|
|
1437
|
+
"meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
|
|
1438
|
+
"mistralai/Devstral-Small-2505",
|
|
1439
|
+
"mistralai/Magistral-Small-2506",
|
|
1440
|
+
"mistralai/Mistral-Large-Instruct-2411",
|
|
1441
|
+
"mistralai/Mistral-Nemo-Instruct-2407",
|
|
1442
|
+
"moonshotai/Kimi-K2-Instruct-0905",
|
|
1443
|
+
"moonshotai/Kimi-K2-Thinking",
|
|
1444
|
+
"openai/gpt-oss-120b",
|
|
1445
|
+
"openai/gpt-oss-20b",
|
|
1446
|
+
"zai-org/GLM-4.6"
|
|
1447
|
+
],
|
|
1448
|
+
docUrl: "https://io.net/docs/guides/intelligence/io-intelligence",
|
|
1449
|
+
gateway: "models.dev"
|
|
1450
|
+
},
|
|
1275
1451
|
modelscope: {
|
|
1276
1452
|
url: "https://api-inference.modelscope.cn/v1",
|
|
1277
1453
|
apiKeyEnvVar: "MODELSCOPE_API_KEY",
|
|
@@ -1329,12 +1505,122 @@ var provider_registry_default = {
|
|
|
1329
1505
|
docUrl: "https://www.scaleway.com/en/docs/generative-apis/",
|
|
1330
1506
|
gateway: "models.dev"
|
|
1331
1507
|
},
|
|
1508
|
+
poe: {
|
|
1509
|
+
url: "https://api.poe.com/v1",
|
|
1510
|
+
apiKeyEnvVar: "POE_API_KEY",
|
|
1511
|
+
apiKeyHeader: "Authorization",
|
|
1512
|
+
name: "Poe",
|
|
1513
|
+
models: [
|
|
1514
|
+
"anthropic/claude-haiku-3",
|
|
1515
|
+
"anthropic/claude-haiku-3.5",
|
|
1516
|
+
"anthropic/claude-haiku-3.5-search",
|
|
1517
|
+
"anthropic/claude-haiku-4.5",
|
|
1518
|
+
"anthropic/claude-opus-3",
|
|
1519
|
+
"anthropic/claude-opus-4",
|
|
1520
|
+
"anthropic/claude-opus-4-reasoning",
|
|
1521
|
+
"anthropic/claude-opus-4-search",
|
|
1522
|
+
"anthropic/claude-opus-4.1",
|
|
1523
|
+
"anthropic/claude-sonnet-3.5",
|
|
1524
|
+
"anthropic/claude-sonnet-3.5-june",
|
|
1525
|
+
"anthropic/claude-sonnet-3.7",
|
|
1526
|
+
"anthropic/claude-sonnet-3.7-reasoning",
|
|
1527
|
+
"anthropic/claude-sonnet-3.7-search",
|
|
1528
|
+
"anthropic/claude-sonnet-4",
|
|
1529
|
+
"anthropic/claude-sonnet-4-reasoning",
|
|
1530
|
+
"anthropic/claude-sonnet-4-search",
|
|
1531
|
+
"anthropic/claude-sonnet-4.5",
|
|
1532
|
+
"elevenlabs/elevenlabs-music",
|
|
1533
|
+
"elevenlabs/elevenlabs-v2.5-turbo",
|
|
1534
|
+
"elevenlabs/elevenlabs-v3",
|
|
1535
|
+
"facebook/llama-3.1-405b",
|
|
1536
|
+
"facebook/llama-3.1-70b",
|
|
1537
|
+
"facebook/llama-3.1-8b",
|
|
1538
|
+
"google/gemini-2.0-flash",
|
|
1539
|
+
"google/gemini-2.0-flash-lite",
|
|
1540
|
+
"google/gemini-2.5-flash",
|
|
1541
|
+
"google/gemini-2.5-flash-lite",
|
|
1542
|
+
"google/gemini-2.5-pro",
|
|
1543
|
+
"google/gemini-3.0-pro",
|
|
1544
|
+
"google/imagen-3",
|
|
1545
|
+
"google/imagen-3-fast",
|
|
1546
|
+
"google/imagen-4",
|
|
1547
|
+
"google/imagen-4-fast",
|
|
1548
|
+
"google/imagen-4-ultra",
|
|
1549
|
+
"google/lyria",
|
|
1550
|
+
"google/nano-banana",
|
|
1551
|
+
"google/veo-2",
|
|
1552
|
+
"google/veo-3",
|
|
1553
|
+
"google/veo-3-fast",
|
|
1554
|
+
"google/veo-3.1",
|
|
1555
|
+
"google/veo-3.1-fast",
|
|
1556
|
+
"ideogramai/ideogram",
|
|
1557
|
+
"ideogramai/ideogram-v2",
|
|
1558
|
+
"ideogramai/ideogram-v2a",
|
|
1559
|
+
"ideogramai/ideogram-v2a-turbo",
|
|
1560
|
+
"lumalabs/dream-machine",
|
|
1561
|
+
"lumalabs/ray2",
|
|
1562
|
+
"novita/glm-4.6",
|
|
1563
|
+
"openAi/chatgpt-4o-latest",
|
|
1564
|
+
"openAi/dall-e-3",
|
|
1565
|
+
"openAi/gpt-3.5-turbo",
|
|
1566
|
+
"openAi/gpt-3.5-turbo-instruct",
|
|
1567
|
+
"openAi/gpt-3.5-turbo-raw",
|
|
1568
|
+
"openAi/gpt-4-classic",
|
|
1569
|
+
"openAi/gpt-4-classic-0314",
|
|
1570
|
+
"openAi/gpt-4-turbo",
|
|
1571
|
+
"openAi/gpt-4.1",
|
|
1572
|
+
"openAi/gpt-4.1-mini",
|
|
1573
|
+
"openAi/gpt-4.1-nano",
|
|
1574
|
+
"openAi/gpt-4o",
|
|
1575
|
+
"openAi/gpt-4o-aug",
|
|
1576
|
+
"openAi/gpt-4o-mini",
|
|
1577
|
+
"openAi/gpt-4o-mini-search",
|
|
1578
|
+
"openAi/gpt-4o-search",
|
|
1579
|
+
"openAi/gpt-5",
|
|
1580
|
+
"openAi/gpt-5-chat",
|
|
1581
|
+
"openAi/gpt-5-codex",
|
|
1582
|
+
"openAi/gpt-5-mini",
|
|
1583
|
+
"openAi/gpt-5-nano",
|
|
1584
|
+
"openAi/gpt-5-pro",
|
|
1585
|
+
"openAi/gpt-image-1",
|
|
1586
|
+
"openAi/gpt-image-1-mini",
|
|
1587
|
+
"openAi/o1",
|
|
1588
|
+
"openAi/o1-pro",
|
|
1589
|
+
"openAi/o3",
|
|
1590
|
+
"openAi/o3-deep-research",
|
|
1591
|
+
"openAi/o3-mini",
|
|
1592
|
+
"openAi/o3-mini-high",
|
|
1593
|
+
"openAi/o3-pro",
|
|
1594
|
+
"openAi/o4-mini",
|
|
1595
|
+
"openAi/o4-mini-deep-research",
|
|
1596
|
+
"openAi/sora-2",
|
|
1597
|
+
"openAi/sora-2-pro",
|
|
1598
|
+
"openai/gpt-5.1",
|
|
1599
|
+
"openai/gpt-5.1-codex",
|
|
1600
|
+
"openai/gpt-5.1-codex-mini",
|
|
1601
|
+
"openai/gpt-5.1-instant",
|
|
1602
|
+
"runwayml/runway",
|
|
1603
|
+
"runwayml/runway-gen-4-turbo",
|
|
1604
|
+
"stabilityai/stablediffusionxl",
|
|
1605
|
+
"topazlabs-co/topazlabs",
|
|
1606
|
+
"trytako/tako",
|
|
1607
|
+
"xai/grok-2",
|
|
1608
|
+
"xai/grok-3",
|
|
1609
|
+
"xai/grok-3-mini",
|
|
1610
|
+
"xai/grok-4",
|
|
1611
|
+
"xai/grok-4-fast-non-reasoning",
|
|
1612
|
+
"xai/grok-4-fast-reasoning",
|
|
1613
|
+
"xai/grok-code-fast-1"
|
|
1614
|
+
],
|
|
1615
|
+
docUrl: "https://creator.poe.com/docs/external-applications/openai-compatible-api",
|
|
1616
|
+
gateway: "models.dev"
|
|
1617
|
+
},
|
|
1332
1618
|
cerebras: {
|
|
1333
1619
|
url: "https://api.cerebras.ai/v1",
|
|
1334
1620
|
apiKeyEnvVar: "CEREBRAS_API_KEY",
|
|
1335
1621
|
apiKeyHeader: "Authorization",
|
|
1336
1622
|
name: "Cerebras",
|
|
1337
|
-
models: ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "
|
|
1623
|
+
models: ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "zai-glm-4.6"],
|
|
1338
1624
|
docUrl: "https://inference-docs.cerebras.ai/models/overview",
|
|
1339
1625
|
gateway: "models.dev"
|
|
1340
1626
|
},
|
|
@@ -1350,6 +1636,7 @@ var provider_registry_default = {
|
|
|
1350
1636
|
"anthropic/claude-haiku-4-5-20251001",
|
|
1351
1637
|
"anthropic/claude-opus-4-1-20250805",
|
|
1352
1638
|
"anthropic/claude-opus-4-20250514",
|
|
1639
|
+
"anthropic/claude-opus-4-5-20251101",
|
|
1353
1640
|
"anthropic/claude-sonnet-4-20250514",
|
|
1354
1641
|
"anthropic/claude-sonnet-4-5-20250929",
|
|
1355
1642
|
"gemini/gemini-2.0-flash",
|
|
@@ -1361,6 +1648,7 @@ var provider_registry_default = {
|
|
|
1361
1648
|
"gemini/gemini-2.5-flash-lite-preview-09-2025",
|
|
1362
1649
|
"gemini/gemini-2.5-flash-preview-09-2025",
|
|
1363
1650
|
"gemini/gemini-2.5-pro",
|
|
1651
|
+
"gemini/gemini-3-pro-image-preview",
|
|
1364
1652
|
"gemini/gemini-3-pro-preview",
|
|
1365
1653
|
"gemini/gemini-flash-latest",
|
|
1366
1654
|
"gemini/gemini-flash-lite-latest",
|
|
@@ -1380,6 +1668,7 @@ var provider_registry_default = {
|
|
|
1380
1668
|
"openai/gpt-5.1",
|
|
1381
1669
|
"openai/gpt-5.1-2025-11-13",
|
|
1382
1670
|
"openai/gpt-5.1-codex",
|
|
1671
|
+
"openai/gpt-5.1-codex-mini",
|
|
1383
1672
|
"openai/o3",
|
|
1384
1673
|
"openai/o3-mini",
|
|
1385
1674
|
"openai/o4-mini"
|
|
@@ -1461,6 +1750,8 @@ var provider_registry_default = {
|
|
|
1461
1750
|
"grok-3-mini-fast-latest",
|
|
1462
1751
|
"grok-3-mini-latest",
|
|
1463
1752
|
"grok-4",
|
|
1753
|
+
"grok-4-1-fast",
|
|
1754
|
+
"grok-4-1-fast-non-reasoning",
|
|
1464
1755
|
"grok-4-fast",
|
|
1465
1756
|
"grok-4-fast-non-reasoning",
|
|
1466
1757
|
"grok-beta",
|
|
@@ -1516,6 +1807,7 @@ var provider_registry_default = {
|
|
|
1516
1807
|
"qwen-qwq-32b",
|
|
1517
1808
|
"qwen/qwen3-32b"
|
|
1518
1809
|
],
|
|
1810
|
+
bailing: ["Ling-1T", "Ring-1T"],
|
|
1519
1811
|
mistral: [
|
|
1520
1812
|
"codestral-latest",
|
|
1521
1813
|
"devstral-medium-2507",
|
|
@@ -1557,7 +1849,7 @@ var provider_registry_default = {
|
|
|
1557
1849
|
"anthropic/claude-4-sonnet",
|
|
1558
1850
|
"anthropic/claude-4.5-sonnet",
|
|
1559
1851
|
"anthropic/claude-haiku-4.5",
|
|
1560
|
-
"
|
|
1852
|
+
"anthropic/claude-opus-4.5",
|
|
1561
1853
|
"deepseek/deepseek-r1",
|
|
1562
1854
|
"deepseek/deepseek-r1-distill-llama-70b",
|
|
1563
1855
|
"deepseek/deepseek-v3.1-terminus",
|
|
@@ -1570,6 +1862,7 @@ var provider_registry_default = {
|
|
|
1570
1862
|
"google/gemini-2.5-flash-lite-preview-09-2025",
|
|
1571
1863
|
"google/gemini-2.5-flash-preview-09-2025",
|
|
1572
1864
|
"google/gemini-2.5-pro",
|
|
1865
|
+
"google/gemini-3-pro-preview",
|
|
1573
1866
|
"meta/llama-3.3-70b",
|
|
1574
1867
|
"meta/llama-4-maverick",
|
|
1575
1868
|
"meta/llama-4-scout",
|
|
@@ -1756,7 +2049,8 @@ var provider_registry_default = {
|
|
|
1756
2049
|
"deepseek-ai/DeepSeek-V3-0324",
|
|
1757
2050
|
"deepseek-ai/DeepSeek-V3.1",
|
|
1758
2051
|
"deepseek-ai/DeepSeek-V3.1-Terminus",
|
|
1759
|
-
"deepseek-ai/DeepSeek-V3.2
|
|
2052
|
+
"deepseek-ai/DeepSeek-V3.2",
|
|
2053
|
+
"deepseek-ai/DeepSeek-V3.2-Speciale",
|
|
1760
2054
|
"meituan-longcat/LongCat-Flash-Chat-FP8",
|
|
1761
2055
|
"microsoft/MAI-DS-R1-FP8",
|
|
1762
2056
|
"moonshotai/Kimi-K2-Instruct-0905",
|
|
@@ -1766,6 +2060,7 @@ var provider_registry_default = {
|
|
|
1766
2060
|
"rednote-hilab/dots.ocr",
|
|
1767
2061
|
"tngtech/DeepSeek-R1T-Chimera",
|
|
1768
2062
|
"tngtech/DeepSeek-TNG-R1T2-Chimera",
|
|
2063
|
+
"tngtech/TNG-R1T-Chimera",
|
|
1769
2064
|
"unsloth/Mistral-Nemo-Instruct-2407",
|
|
1770
2065
|
"unsloth/Mistral-Small-24B-Instruct-2501",
|
|
1771
2066
|
"unsloth/gemma-3-12b-it",
|
|
@@ -1775,6 +2070,29 @@ var provider_registry_default = {
|
|
|
1775
2070
|
"zai-org/GLM-4.5-Air",
|
|
1776
2071
|
"zai-org/GLM-4.6"
|
|
1777
2072
|
],
|
|
2073
|
+
agentrouter: [
|
|
2074
|
+
"claude-3-5-haiku-20241022",
|
|
2075
|
+
"claude-3-5-sonnet-20240620",
|
|
2076
|
+
"claude-3-5-sonnet-20241022",
|
|
2077
|
+
"claude-3-7-sonnet-20250219",
|
|
2078
|
+
"claude-3-7-sonnet-20250219-thinking",
|
|
2079
|
+
"claude-haiku-4-5-20251001",
|
|
2080
|
+
"claude-opus-4-20250514",
|
|
2081
|
+
"claude-opus-4-20250514-thinking",
|
|
2082
|
+
"claude-sonnet-4-20250514",
|
|
2083
|
+
"claude-sonnet-4-20250514-thinking",
|
|
2084
|
+
"claude-sonnet-4-5-20250929",
|
|
2085
|
+
"deepseek-r1-0528",
|
|
2086
|
+
"deepseek-v3.1",
|
|
2087
|
+
"deepseek-v3.2",
|
|
2088
|
+
"gemini-3-pro-preview",
|
|
2089
|
+
"glm-4.5",
|
|
2090
|
+
"glm-4.6",
|
|
2091
|
+
"gpt-5",
|
|
2092
|
+
"gpt-5.1",
|
|
2093
|
+
"kimi-k2-thinking"
|
|
2094
|
+
],
|
|
2095
|
+
"kimi-for-coding": ["kimi-k2-thinking"],
|
|
1778
2096
|
cortecs: [
|
|
1779
2097
|
"claude-4-5-sonnet",
|
|
1780
2098
|
"claude-sonnet-4",
|
|
@@ -1859,6 +2177,80 @@ var provider_registry_default = {
|
|
|
1859
2177
|
"moonshotai/Kimi-K2-Thinking",
|
|
1860
2178
|
"zai-org/GLM-4.6"
|
|
1861
2179
|
],
|
|
2180
|
+
siliconflow: [
|
|
2181
|
+
"baidu-ernie-4.5-300b-a47b",
|
|
2182
|
+
"bytedance-seed-seed-oss-36b-instruct",
|
|
2183
|
+
"deepseek-ai-deepseek-r1",
|
|
2184
|
+
"deepseek-ai-deepseek-r1-distill-qwen-14b",
|
|
2185
|
+
"deepseek-ai-deepseek-r1-distill-qwen-32b",
|
|
2186
|
+
"deepseek-ai-deepseek-r1-distill-qwen-7b",
|
|
2187
|
+
"deepseek-ai-deepseek-v3",
|
|
2188
|
+
"deepseek-ai-deepseek-v3.1",
|
|
2189
|
+
"deepseek-ai-deepseek-v3.1-terminus",
|
|
2190
|
+
"deepseek-ai-deepseek-v3.2-exp",
|
|
2191
|
+
"deepseek-ai-deepseek-vl2",
|
|
2192
|
+
"inclusionai-ling-flash-2.0",
|
|
2193
|
+
"inclusionai-ling-mini-2.0",
|
|
2194
|
+
"inclusionai-ring-flash-2.0",
|
|
2195
|
+
"meta-llama-meta-llama-3.1-8b-instruct",
|
|
2196
|
+
"minimaxai-minimax-m1-80k",
|
|
2197
|
+
"minimaxai-minimax-m2",
|
|
2198
|
+
"moonshotai-kimi-dev-72b",
|
|
2199
|
+
"moonshotai-kimi-k2-instruct",
|
|
2200
|
+
"moonshotai-kimi-k2-instruct-0905",
|
|
2201
|
+
"moonshotai-kimi-k2-thinking",
|
|
2202
|
+
"nex-agi-deepseek-v3.1-nex-n1",
|
|
2203
|
+
"openai-gpt-oss-120b",
|
|
2204
|
+
"openai-gpt-oss-20b",
|
|
2205
|
+
"qwen-qwen2.5-14b-instruct",
|
|
2206
|
+
"qwen-qwen2.5-32b-instruct",
|
|
2207
|
+
"qwen-qwen2.5-72b-instruct",
|
|
2208
|
+
"qwen-qwen2.5-72b-instruct-128k",
|
|
2209
|
+
"qwen-qwen2.5-7b-instruct",
|
|
2210
|
+
"qwen-qwen2.5-coder-32b-instruct",
|
|
2211
|
+
"qwen-qwen2.5-vl-32b-instruct",
|
|
2212
|
+
"qwen-qwen2.5-vl-72b-instruct",
|
|
2213
|
+
"qwen-qwen2.5-vl-7b-instruct",
|
|
2214
|
+
"qwen-qwen3-14b",
|
|
2215
|
+
"qwen-qwen3-235b-a22b",
|
|
2216
|
+
"qwen-qwen3-235b-a22b-instruct-2507",
|
|
2217
|
+
"qwen-qwen3-235b-a22b-thinking-2507",
|
|
2218
|
+
"qwen-qwen3-30b-a3b",
|
|
2219
|
+
"qwen-qwen3-30b-a3b-instruct-2507",
|
|
2220
|
+
"qwen-qwen3-30b-a3b-thinking-2507",
|
|
2221
|
+
"qwen-qwen3-32b",
|
|
2222
|
+
"qwen-qwen3-8b",
|
|
2223
|
+
"qwen-qwen3-coder-30b-a3b-instruct",
|
|
2224
|
+
"qwen-qwen3-coder-480b-a35b-instruct",
|
|
2225
|
+
"qwen-qwen3-next-80b-a3b-instruct",
|
|
2226
|
+
"qwen-qwen3-next-80b-a3b-thinking",
|
|
2227
|
+
"qwen-qwen3-omni-30b-a3b-captioner",
|
|
2228
|
+
"qwen-qwen3-omni-30b-a3b-instruct",
|
|
2229
|
+
"qwen-qwen3-omni-30b-a3b-thinking",
|
|
2230
|
+
"qwen-qwen3-vl-235b-a22b-instruct",
|
|
2231
|
+
"qwen-qwen3-vl-235b-a22b-thinking",
|
|
2232
|
+
"qwen-qwen3-vl-30b-a3b-instruct",
|
|
2233
|
+
"qwen-qwen3-vl-30b-a3b-thinking",
|
|
2234
|
+
"qwen-qwen3-vl-32b-instruct",
|
|
2235
|
+
"qwen-qwen3-vl-32b-thinking",
|
|
2236
|
+
"qwen-qwen3-vl-8b-instruct",
|
|
2237
|
+
"qwen-qwen3-vl-8b-thinking",
|
|
2238
|
+
"qwen-qwq-32b",
|
|
2239
|
+
"stepfun-ai-step3",
|
|
2240
|
+
"tencent-hunyuan-a13b-instruct",
|
|
2241
|
+
"tencent-hunyuan-mt-7b",
|
|
2242
|
+
"thudm-glm-4-32b-0414",
|
|
2243
|
+
"thudm-glm-4-9b-0414",
|
|
2244
|
+
"thudm-glm-4.1v-9b-thinking",
|
|
2245
|
+
"thudm-glm-z1-32b-0414",
|
|
2246
|
+
"thudm-glm-z1-9b-0414",
|
|
2247
|
+
"z-ai-glm-4.5",
|
|
2248
|
+
"z-ai-glm-4.5-air",
|
|
2249
|
+
"zai-org-glm-4.5",
|
|
2250
|
+
"zai-org-glm-4.5-air",
|
|
2251
|
+
"zai-org-glm-4.5v",
|
|
2252
|
+
"zai-org-glm-4.6"
|
|
2253
|
+
],
|
|
1862
2254
|
huggingface: [
|
|
1863
2255
|
"MiniMaxAI/MiniMax-M2",
|
|
1864
2256
|
"Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
@@ -1878,14 +2270,15 @@ var provider_registry_default = {
|
|
|
1878
2270
|
opencode: [
|
|
1879
2271
|
"alpha-doubao-seed-code",
|
|
1880
2272
|
"alpha-gd4",
|
|
1881
|
-
"alpha-kimi-k2-thinking",
|
|
1882
2273
|
"alpha-minimax-m2",
|
|
1883
2274
|
"big-pickle",
|
|
1884
2275
|
"claude-3-5-haiku",
|
|
1885
2276
|
"claude-haiku-4-5",
|
|
1886
2277
|
"claude-opus-4-1",
|
|
2278
|
+
"claude-opus-4-5",
|
|
1887
2279
|
"claude-sonnet-4",
|
|
1888
2280
|
"claude-sonnet-4-5",
|
|
2281
|
+
"gemini-3-pro",
|
|
1889
2282
|
"glm-4.6",
|
|
1890
2283
|
"gpt-5",
|
|
1891
2284
|
"gpt-5-codex",
|
|
@@ -1894,6 +2287,7 @@ var provider_registry_default = {
|
|
|
1894
2287
|
"gpt-5.1-codex",
|
|
1895
2288
|
"grok-code",
|
|
1896
2289
|
"kimi-k2",
|
|
2290
|
+
"kimi-k2-thinking",
|
|
1897
2291
|
"qwen3-coder"
|
|
1898
2292
|
],
|
|
1899
2293
|
fastrouter: [
|
|
@@ -1991,6 +2385,7 @@ var provider_registry_default = {
|
|
|
1991
2385
|
"text-embedding-ada-002"
|
|
1992
2386
|
],
|
|
1993
2387
|
"zhipuai-coding-plan": ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"],
|
|
2388
|
+
"minimax-cn": ["MiniMax-M2"],
|
|
1994
2389
|
perplexity: ["sonar", "sonar-pro", "sonar-reasoning", "sonar-reasoning-pro"],
|
|
1995
2390
|
openrouter: [
|
|
1996
2391
|
"anthropic/claude-3.5-haiku",
|
|
@@ -1998,6 +2393,7 @@ var provider_registry_default = {
|
|
|
1998
2393
|
"anthropic/claude-haiku-4.5",
|
|
1999
2394
|
"anthropic/claude-opus-4",
|
|
2000
2395
|
"anthropic/claude-opus-4.1",
|
|
2396
|
+
"anthropic/claude-opus-4.5",
|
|
2001
2397
|
"anthropic/claude-sonnet-4",
|
|
2002
2398
|
"anthropic/claude-sonnet-4.5",
|
|
2003
2399
|
"cognitivecomputations/dolphin3.0-mistral-24b",
|
|
@@ -2012,6 +2408,7 @@ var provider_registry_default = {
|
|
|
2012
2408
|
"deepseek/deepseek-v3-base:free",
|
|
2013
2409
|
"deepseek/deepseek-v3.1-terminus",
|
|
2014
2410
|
"deepseek/deepseek-v3.1-terminus:exacto",
|
|
2411
|
+
"deepseek/deepseek-v3.2",
|
|
2015
2412
|
"featherless/qwerky-72b",
|
|
2016
2413
|
"google/gemini-2.0-flash-001",
|
|
2017
2414
|
"google/gemini-2.0-flash-exp:free",
|
|
@@ -2022,6 +2419,7 @@ var provider_registry_default = {
|
|
|
2022
2419
|
"google/gemini-2.5-pro",
|
|
2023
2420
|
"google/gemini-2.5-pro-preview-05-06",
|
|
2024
2421
|
"google/gemini-2.5-pro-preview-06-05",
|
|
2422
|
+
"google/gemini-3-pro-preview",
|
|
2025
2423
|
"google/gemma-2-9b-it:free",
|
|
2026
2424
|
"google/gemma-3-12b-it",
|
|
2027
2425
|
"google/gemma-3-27b-it",
|
|
@@ -2074,15 +2472,8 @@ var provider_registry_default = {
|
|
|
2074
2472
|
"openai/gpt-oss-120b",
|
|
2075
2473
|
"openai/gpt-oss-120b:exacto",
|
|
2076
2474
|
"openai/gpt-oss-20b",
|
|
2475
|
+
"openai/gpt-oss-safeguard-20b",
|
|
2077
2476
|
"openai/o4-mini",
|
|
2078
|
-
"openrouter/cypher-alpha:free",
|
|
2079
|
-
"openrouter/horizon-alpha",
|
|
2080
|
-
"openrouter/horizon-beta",
|
|
2081
|
-
"openrouter/polaris-alpha",
|
|
2082
|
-
"openrouter/sherlock-dash-alpha",
|
|
2083
|
-
"openrouter/sherlock-think-alpha",
|
|
2084
|
-
"openrouter/sonoma-dusk-alpha",
|
|
2085
|
-
"openrouter/sonoma-sky-alpha",
|
|
2086
2477
|
"qwen/qwen-2.5-coder-32b-instruct",
|
|
2087
2478
|
"qwen/qwen2.5-vl-32b-instruct:free",
|
|
2088
2479
|
"qwen/qwen2.5-vl-72b-instruct",
|
|
@@ -2098,6 +2489,7 @@ var provider_registry_default = {
|
|
|
2098
2489
|
"qwen/qwen3-32b:free",
|
|
2099
2490
|
"qwen/qwen3-8b:free",
|
|
2100
2491
|
"qwen/qwen3-coder",
|
|
2492
|
+
"qwen/qwen3-coder-flash",
|
|
2101
2493
|
"qwen/qwen3-coder:exacto",
|
|
2102
2494
|
"qwen/qwen3-coder:free",
|
|
2103
2495
|
"qwen/qwen3-max",
|
|
@@ -2114,6 +2506,7 @@ var provider_registry_default = {
|
|
|
2114
2506
|
"x-ai/grok-3-mini-beta",
|
|
2115
2507
|
"x-ai/grok-4",
|
|
2116
2508
|
"x-ai/grok-4-fast",
|
|
2509
|
+
"x-ai/grok-4.1-fast",
|
|
2117
2510
|
"x-ai/grok-code-fast-1",
|
|
2118
2511
|
"z-ai/glm-4.5",
|
|
2119
2512
|
"z-ai/glm-4.5-air",
|
|
@@ -2244,10 +2637,12 @@ var provider_registry_default = {
|
|
|
2244
2637
|
"anthropic/claude-haiku-4-5",
|
|
2245
2638
|
"anthropic/claude-opus-4",
|
|
2246
2639
|
"anthropic/claude-opus-4-1",
|
|
2640
|
+
"anthropic/claude-opus-4-5",
|
|
2247
2641
|
"anthropic/claude-sonnet-4",
|
|
2248
2642
|
"anthropic/claude-sonnet-4-5",
|
|
2249
2643
|
"google/gemini-2.5-flash",
|
|
2250
2644
|
"google/gemini-2.5-pro",
|
|
2645
|
+
"google/gemini-3-pro-preview",
|
|
2251
2646
|
"openai/gpt-4.1",
|
|
2252
2647
|
"openai/gpt-4.1-mini",
|
|
2253
2648
|
"openai/gpt-4o-mini",
|
|
@@ -2276,6 +2671,8 @@ var provider_registry_default = {
|
|
|
2276
2671
|
"claude-opus-4-1",
|
|
2277
2672
|
"claude-opus-4-1-20250805",
|
|
2278
2673
|
"claude-opus-4-20250514",
|
|
2674
|
+
"claude-opus-4-5",
|
|
2675
|
+
"claude-opus-4-5-20251101",
|
|
2279
2676
|
"claude-sonnet-4-0",
|
|
2280
2677
|
"claude-sonnet-4-20250514",
|
|
2281
2678
|
"claude-sonnet-4-5",
|
|
@@ -2290,10 +2687,30 @@ var provider_registry_default = {
|
|
|
2290
2687
|
"accounts/fireworks/models/gpt-oss-120b",
|
|
2291
2688
|
"accounts/fireworks/models/gpt-oss-20b",
|
|
2292
2689
|
"accounts/fireworks/models/kimi-k2-instruct",
|
|
2690
|
+
"accounts/fireworks/models/kimi-k2-thinking",
|
|
2293
2691
|
"accounts/fireworks/models/minimax-m2",
|
|
2294
2692
|
"accounts/fireworks/models/qwen3-235b-a22b",
|
|
2295
2693
|
"accounts/fireworks/models/qwen3-coder-480b-a35b-instruct"
|
|
2296
2694
|
],
|
|
2695
|
+
"io-net": [
|
|
2696
|
+
"Intel/Qwen3-Coder-480B-A35B-Instruct-int4-mixed-ar",
|
|
2697
|
+
"Qwen/Qwen2.5-VL-32B-Instruct",
|
|
2698
|
+
"Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
2699
|
+
"Qwen/Qwen3-Next-80B-A3B-Instruct",
|
|
2700
|
+
"deepseek-ai/DeepSeek-R1-0528",
|
|
2701
|
+
"meta-llama/Llama-3.2-90B-Vision-Instruct",
|
|
2702
|
+
"meta-llama/Llama-3.3-70B-Instruct",
|
|
2703
|
+
"meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
|
|
2704
|
+
"mistralai/Devstral-Small-2505",
|
|
2705
|
+
"mistralai/Magistral-Small-2506",
|
|
2706
|
+
"mistralai/Mistral-Large-Instruct-2411",
|
|
2707
|
+
"mistralai/Mistral-Nemo-Instruct-2407",
|
|
2708
|
+
"moonshotai/Kimi-K2-Instruct-0905",
|
|
2709
|
+
"moonshotai/Kimi-K2-Thinking",
|
|
2710
|
+
"openai/gpt-oss-120b",
|
|
2711
|
+
"openai/gpt-oss-20b",
|
|
2712
|
+
"zai-org/GLM-4.6"
|
|
2713
|
+
],
|
|
2297
2714
|
modelscope: [
|
|
2298
2715
|
"Qwen/Qwen3-235B-A22B-Instruct-2507",
|
|
2299
2716
|
"Qwen/Qwen3-235B-A22B-Thinking-2507",
|
|
@@ -2327,7 +2744,109 @@ var provider_registry_default = {
|
|
|
2327
2744
|
"voxtral-small-24b-2507",
|
|
2328
2745
|
"whisper-large-v3"
|
|
2329
2746
|
],
|
|
2330
|
-
|
|
2747
|
+
poe: [
|
|
2748
|
+
"anthropic/claude-haiku-3",
|
|
2749
|
+
"anthropic/claude-haiku-3.5",
|
|
2750
|
+
"anthropic/claude-haiku-3.5-search",
|
|
2751
|
+
"anthropic/claude-haiku-4.5",
|
|
2752
|
+
"anthropic/claude-opus-3",
|
|
2753
|
+
"anthropic/claude-opus-4",
|
|
2754
|
+
"anthropic/claude-opus-4-reasoning",
|
|
2755
|
+
"anthropic/claude-opus-4-search",
|
|
2756
|
+
"anthropic/claude-opus-4.1",
|
|
2757
|
+
"anthropic/claude-sonnet-3.5",
|
|
2758
|
+
"anthropic/claude-sonnet-3.5-june",
|
|
2759
|
+
"anthropic/claude-sonnet-3.7",
|
|
2760
|
+
"anthropic/claude-sonnet-3.7-reasoning",
|
|
2761
|
+
"anthropic/claude-sonnet-3.7-search",
|
|
2762
|
+
"anthropic/claude-sonnet-4",
|
|
2763
|
+
"anthropic/claude-sonnet-4-reasoning",
|
|
2764
|
+
"anthropic/claude-sonnet-4-search",
|
|
2765
|
+
"anthropic/claude-sonnet-4.5",
|
|
2766
|
+
"elevenlabs/elevenlabs-music",
|
|
2767
|
+
"elevenlabs/elevenlabs-v2.5-turbo",
|
|
2768
|
+
"elevenlabs/elevenlabs-v3",
|
|
2769
|
+
"facebook/llama-3.1-405b",
|
|
2770
|
+
"facebook/llama-3.1-70b",
|
|
2771
|
+
"facebook/llama-3.1-8b",
|
|
2772
|
+
"google/gemini-2.0-flash",
|
|
2773
|
+
"google/gemini-2.0-flash-lite",
|
|
2774
|
+
"google/gemini-2.5-flash",
|
|
2775
|
+
"google/gemini-2.5-flash-lite",
|
|
2776
|
+
"google/gemini-2.5-pro",
|
|
2777
|
+
"google/gemini-3.0-pro",
|
|
2778
|
+
"google/imagen-3",
|
|
2779
|
+
"google/imagen-3-fast",
|
|
2780
|
+
"google/imagen-4",
|
|
2781
|
+
"google/imagen-4-fast",
|
|
2782
|
+
"google/imagen-4-ultra",
|
|
2783
|
+
"google/lyria",
|
|
2784
|
+
"google/nano-banana",
|
|
2785
|
+
"google/veo-2",
|
|
2786
|
+
"google/veo-3",
|
|
2787
|
+
"google/veo-3-fast",
|
|
2788
|
+
"google/veo-3.1",
|
|
2789
|
+
"google/veo-3.1-fast",
|
|
2790
|
+
"ideogramai/ideogram",
|
|
2791
|
+
"ideogramai/ideogram-v2",
|
|
2792
|
+
"ideogramai/ideogram-v2a",
|
|
2793
|
+
"ideogramai/ideogram-v2a-turbo",
|
|
2794
|
+
"lumalabs/dream-machine",
|
|
2795
|
+
"lumalabs/ray2",
|
|
2796
|
+
"novita/glm-4.6",
|
|
2797
|
+
"openAi/chatgpt-4o-latest",
|
|
2798
|
+
"openAi/dall-e-3",
|
|
2799
|
+
"openAi/gpt-3.5-turbo",
|
|
2800
|
+
"openAi/gpt-3.5-turbo-instruct",
|
|
2801
|
+
"openAi/gpt-3.5-turbo-raw",
|
|
2802
|
+
"openAi/gpt-4-classic",
|
|
2803
|
+
"openAi/gpt-4-classic-0314",
|
|
2804
|
+
"openAi/gpt-4-turbo",
|
|
2805
|
+
"openAi/gpt-4.1",
|
|
2806
|
+
"openAi/gpt-4.1-mini",
|
|
2807
|
+
"openAi/gpt-4.1-nano",
|
|
2808
|
+
"openAi/gpt-4o",
|
|
2809
|
+
"openAi/gpt-4o-aug",
|
|
2810
|
+
"openAi/gpt-4o-mini",
|
|
2811
|
+
"openAi/gpt-4o-mini-search",
|
|
2812
|
+
"openAi/gpt-4o-search",
|
|
2813
|
+
"openAi/gpt-5",
|
|
2814
|
+
"openAi/gpt-5-chat",
|
|
2815
|
+
"openAi/gpt-5-codex",
|
|
2816
|
+
"openAi/gpt-5-mini",
|
|
2817
|
+
"openAi/gpt-5-nano",
|
|
2818
|
+
"openAi/gpt-5-pro",
|
|
2819
|
+
"openAi/gpt-image-1",
|
|
2820
|
+
"openAi/gpt-image-1-mini",
|
|
2821
|
+
"openAi/o1",
|
|
2822
|
+
"openAi/o1-pro",
|
|
2823
|
+
"openAi/o3",
|
|
2824
|
+
"openAi/o3-deep-research",
|
|
2825
|
+
"openAi/o3-mini",
|
|
2826
|
+
"openAi/o3-mini-high",
|
|
2827
|
+
"openAi/o3-pro",
|
|
2828
|
+
"openAi/o4-mini",
|
|
2829
|
+
"openAi/o4-mini-deep-research",
|
|
2830
|
+
"openAi/sora-2",
|
|
2831
|
+
"openAi/sora-2-pro",
|
|
2832
|
+
"openai/gpt-5.1",
|
|
2833
|
+
"openai/gpt-5.1-codex",
|
|
2834
|
+
"openai/gpt-5.1-codex-mini",
|
|
2835
|
+
"openai/gpt-5.1-instant",
|
|
2836
|
+
"runwayml/runway",
|
|
2837
|
+
"runwayml/runway-gen-4-turbo",
|
|
2838
|
+
"stabilityai/stablediffusionxl",
|
|
2839
|
+
"topazlabs-co/topazlabs",
|
|
2840
|
+
"trytako/tako",
|
|
2841
|
+
"xai/grok-2",
|
|
2842
|
+
"xai/grok-3",
|
|
2843
|
+
"xai/grok-3-mini",
|
|
2844
|
+
"xai/grok-4",
|
|
2845
|
+
"xai/grok-4-fast-non-reasoning",
|
|
2846
|
+
"xai/grok-4-fast-reasoning",
|
|
2847
|
+
"xai/grok-code-fast-1"
|
|
2848
|
+
],
|
|
2849
|
+
cerebras: ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "zai-glm-4.6"],
|
|
2331
2850
|
netlify: [
|
|
2332
2851
|
"anthropic/claude-3-5-haiku-20241022",
|
|
2333
2852
|
"anthropic/claude-3-7-sonnet-20250219",
|
|
@@ -2335,6 +2854,7 @@ var provider_registry_default = {
|
|
|
2335
2854
|
"anthropic/claude-haiku-4-5-20251001",
|
|
2336
2855
|
"anthropic/claude-opus-4-1-20250805",
|
|
2337
2856
|
"anthropic/claude-opus-4-20250514",
|
|
2857
|
+
"anthropic/claude-opus-4-5-20251101",
|
|
2338
2858
|
"anthropic/claude-sonnet-4-20250514",
|
|
2339
2859
|
"anthropic/claude-sonnet-4-5-20250929",
|
|
2340
2860
|
"gemini/gemini-2.0-flash",
|
|
@@ -2346,6 +2866,7 @@ var provider_registry_default = {
|
|
|
2346
2866
|
"gemini/gemini-2.5-flash-lite-preview-09-2025",
|
|
2347
2867
|
"gemini/gemini-2.5-flash-preview-09-2025",
|
|
2348
2868
|
"gemini/gemini-2.5-pro",
|
|
2869
|
+
"gemini/gemini-3-pro-image-preview",
|
|
2349
2870
|
"gemini/gemini-3-pro-preview",
|
|
2350
2871
|
"gemini/gemini-flash-latest",
|
|
2351
2872
|
"gemini/gemini-flash-lite-latest",
|
|
@@ -2365,6 +2886,7 @@ var provider_registry_default = {
|
|
|
2365
2886
|
"openai/gpt-5.1",
|
|
2366
2887
|
"openai/gpt-5.1-2025-11-13",
|
|
2367
2888
|
"openai/gpt-5.1-codex",
|
|
2889
|
+
"openai/gpt-5.1-codex-mini",
|
|
2368
2890
|
"openai/o3",
|
|
2369
2891
|
"openai/o3-mini",
|
|
2370
2892
|
"openai/o4-mini"
|
|
@@ -2380,6 +2902,20 @@ var CACHE_FILE = () => path.join(CACHE_DIR(), "gateway-refresh-time");
|
|
|
2380
2902
|
var GLOBAL_PROVIDER_REGISTRY_JSON = () => path.join(CACHE_DIR(), "provider-registry.json");
|
|
2381
2903
|
var GLOBAL_PROVIDER_TYPES_DTS = () => path.join(CACHE_DIR(), "provider-types.generated.d.ts");
|
|
2382
2904
|
var modelRouterCacheFailed = false;
|
|
2905
|
+
function atomicWriteFileSync(filePath, content, encoding = "utf-8") {
|
|
2906
|
+
const randomSuffix = Math.random().toString(36).substring(2, 15);
|
|
2907
|
+
const tempPath = `${filePath}.${process.pid}.${Date.now()}.${randomSuffix}.tmp`;
|
|
2908
|
+
try {
|
|
2909
|
+
fs.writeFileSync(tempPath, content, encoding);
|
|
2910
|
+
fs.renameSync(tempPath, filePath);
|
|
2911
|
+
} catch (error) {
|
|
2912
|
+
try {
|
|
2913
|
+
fs.unlinkSync(tempPath);
|
|
2914
|
+
} catch {
|
|
2915
|
+
}
|
|
2916
|
+
throw error;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2383
2919
|
function syncGlobalCacheToLocal() {
|
|
2384
2920
|
try {
|
|
2385
2921
|
const globalJsonExists = fs.existsSync(GLOBAL_PROVIDER_REGISTRY_JSON());
|
|
@@ -2394,13 +2930,25 @@ function syncGlobalCacheToLocal() {
|
|
|
2394
2930
|
fs.mkdirSync(path.dirname(localDtsPath), { recursive: true });
|
|
2395
2931
|
if (globalJsonExists) {
|
|
2396
2932
|
const globalJsonContent = fs.readFileSync(GLOBAL_PROVIDER_REGISTRY_JSON(), "utf-8");
|
|
2933
|
+
try {
|
|
2934
|
+
JSON.parse(globalJsonContent);
|
|
2935
|
+
} catch {
|
|
2936
|
+
console.warn(
|
|
2937
|
+
`[GatewayRegistry] Detected corrupted global cache at ${GLOBAL_PROVIDER_REGISTRY_JSON()}. Deleting corrupted file.`
|
|
2938
|
+
);
|
|
2939
|
+
try {
|
|
2940
|
+
fs.unlinkSync(GLOBAL_PROVIDER_REGISTRY_JSON());
|
|
2941
|
+
} catch {
|
|
2942
|
+
}
|
|
2943
|
+
return;
|
|
2944
|
+
}
|
|
2397
2945
|
let shouldCopyJson = true;
|
|
2398
2946
|
if (fs.existsSync(localJsonPath)) {
|
|
2399
2947
|
const localJsonContent = fs.readFileSync(localJsonPath, "utf-8");
|
|
2400
2948
|
shouldCopyJson = globalJsonContent !== localJsonContent;
|
|
2401
2949
|
}
|
|
2402
2950
|
if (shouldCopyJson) {
|
|
2403
|
-
|
|
2951
|
+
atomicWriteFileSync(localJsonPath, globalJsonContent, "utf-8");
|
|
2404
2952
|
}
|
|
2405
2953
|
}
|
|
2406
2954
|
if (globalDtsExists) {
|
|
@@ -2411,7 +2959,7 @@ function syncGlobalCacheToLocal() {
|
|
|
2411
2959
|
shouldCopyDts = globalDtsContent !== localDtsContent;
|
|
2412
2960
|
}
|
|
2413
2961
|
if (shouldCopyDts) {
|
|
2414
|
-
|
|
2962
|
+
atomicWriteFileSync(localDtsPath, globalDtsContent, "utf-8");
|
|
2415
2963
|
}
|
|
2416
2964
|
}
|
|
2417
2965
|
} catch (error) {
|
|
@@ -2476,16 +3024,31 @@ function loadRegistry(useDynamicLoading) {
|
|
|
2476
3024
|
registryData = JSON.parse(content);
|
|
2477
3025
|
return registryData;
|
|
2478
3026
|
} catch (err) {
|
|
2479
|
-
|
|
3027
|
+
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
3028
|
+
errors.push(`${jsonPath}: ${errorMessage}`);
|
|
3029
|
+
const isFileNotFound = err instanceof Error && "code" in err && err.code === "ENOENT";
|
|
3030
|
+
const isJsonParseError = err instanceof SyntaxError;
|
|
3031
|
+
if (!isFileNotFound && isJsonParseError) {
|
|
3032
|
+
console.warn(
|
|
3033
|
+
`[GatewayRegistry] Detected corrupted provider-registry.json at ${jsonPath}. Deleting corrupted file and falling back to static registry.`
|
|
3034
|
+
);
|
|
3035
|
+
try {
|
|
3036
|
+
fs.unlinkSync(jsonPath);
|
|
3037
|
+
} catch {
|
|
3038
|
+
}
|
|
3039
|
+
registryData = provider_registry_default;
|
|
3040
|
+
return registryData;
|
|
3041
|
+
}
|
|
2480
3042
|
continue;
|
|
2481
3043
|
}
|
|
2482
3044
|
}
|
|
2483
|
-
|
|
2484
|
-
`
|
|
2485
|
-
|
|
3045
|
+
console.warn(
|
|
3046
|
+
`[GatewayRegistry] Could not load provider registry from any path. Falling back to static registry.
|
|
2486
3047
|
Tried paths:
|
|
2487
3048
|
${errors.join("\n")}`
|
|
2488
3049
|
);
|
|
3050
|
+
registryData = provider_registry_default;
|
|
3051
|
+
return registryData;
|
|
2489
3052
|
}
|
|
2490
3053
|
var PROVIDER_REGISTRY = new Proxy({}, {
|
|
2491
3054
|
get(_target, prop) {
|
|
@@ -2625,9 +3188,9 @@ var GatewayRegistry = class _GatewayRegistry {
|
|
|
2625
3188
|
}
|
|
2626
3189
|
this.isRefreshing = true;
|
|
2627
3190
|
try {
|
|
2628
|
-
const { ModelsDevGateway } = await import('./models-dev-
|
|
2629
|
-
const { NetlifyGateway } = await import('./netlify-
|
|
2630
|
-
const { fetchProvidersFromGateways, writeRegistryFiles } = await import('./registry-generator-
|
|
3191
|
+
const { ModelsDevGateway } = await import('./models-dev-F6MTIYTO.js');
|
|
3192
|
+
const { NetlifyGateway } = await import('./netlify-C2YBIK7A.js');
|
|
3193
|
+
const { fetchProvidersFromGateways, writeRegistryFiles } = await import('./registry-generator-UMTNPBJX.js');
|
|
2631
3194
|
const defaultGateways = [new ModelsDevGateway({}), new NetlifyGateway()];
|
|
2632
3195
|
const gateways = [...defaultGateways, ...this.customGateways];
|
|
2633
3196
|
const { providers, models } = await fetchProvidersFromGateways(gateways);
|
|
@@ -2744,5 +3307,5 @@ if (autoRefreshEnabled) {
|
|
|
2744
3307
|
}
|
|
2745
3308
|
|
|
2746
3309
|
export { GatewayRegistry, PROVIDER_MODELS, PROVIDER_REGISTRY, getProviderConfig, getRegisteredProviders, isProviderRegistered, isValidModelId, parseModelString };
|
|
2747
|
-
//# sourceMappingURL=chunk-
|
|
2748
|
-
//# sourceMappingURL=chunk-
|
|
3310
|
+
//# sourceMappingURL=chunk-DXMSVGJ6.js.map
|
|
3311
|
+
//# sourceMappingURL=chunk-DXMSVGJ6.js.map
|