@mastra/core 0.18.0 → 0.19.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/dist/action/index.d.ts +5 -5
- package/dist/action/index.d.ts.map +1 -1
- package/dist/agent/agent.d.ts +20 -10
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +11 -11
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/agent/message-list/index.d.ts +1 -1
- package/dist/agent/message-list/index.d.ts.map +1 -1
- package/dist/agent/trip-wire.d.ts +14 -0
- package/dist/agent/trip-wire.d.ts.map +1 -1
- package/dist/agent/types.d.ts +19 -11
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +4 -33
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/schema.d.ts +3 -1
- package/dist/agent/workflows/prepare-stream/schema.d.ts.map +1 -1
- package/dist/ai-tracing/exporters/default.d.ts +2 -2
- package/dist/ai-tracing/exporters/default.d.ts.map +1 -1
- package/dist/ai-tracing/index.cjs +32 -32
- package/dist/ai-tracing/index.js +1 -1
- package/dist/ai-tracing/types.d.ts +2 -2
- package/dist/ai-tracing/types.d.ts.map +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/{chunk-ITD7IHN5.js → chunk-2DGWSOVQ.js} +23 -5
- package/dist/chunk-2DGWSOVQ.js.map +1 -0
- package/dist/{chunk-WAGAASWE.cjs → chunk-2GHLV754.cjs} +5 -4
- package/dist/chunk-2GHLV754.cjs.map +1 -0
- package/dist/{chunk-JRTFV63C.cjs → chunk-3CCJVNYI.cjs} +48 -30
- package/dist/chunk-3CCJVNYI.cjs.map +1 -0
- package/dist/{chunk-TZZFP4EW.js → chunk-3WFH6YRI.js} +4 -4
- package/dist/{chunk-TZZFP4EW.js.map → chunk-3WFH6YRI.js.map} +1 -1
- package/dist/chunk-45CV4JYJ.cjs +4 -0
- package/dist/{chunk-VBPPPQO3.cjs.map → chunk-45CV4JYJ.cjs.map} +1 -1
- package/dist/{chunk-TJZ4ERV4.cjs → chunk-47WWN5FW.cjs} +19 -19
- package/dist/{chunk-TJZ4ERV4.cjs.map → chunk-47WWN5FW.cjs.map} +1 -1
- package/dist/{chunk-SEZBEL3U.js → chunk-4BEHJSL6.js} +4 -4
- package/dist/{chunk-SEZBEL3U.js.map → chunk-4BEHJSL6.js.map} +1 -1
- package/dist/{chunk-QIXLPKMN.cjs → chunk-4LGYM3WV.cjs} +4 -4
- package/dist/{chunk-QIXLPKMN.cjs.map → chunk-4LGYM3WV.cjs.map} +1 -1
- package/dist/chunk-4LSFAAZW.js +3 -0
- package/dist/{chunk-CE73R5W7.js.map → chunk-4LSFAAZW.js.map} +1 -1
- package/dist/{chunk-XUAWHRUO.cjs → chunk-4R2TBRS7.cjs} +37 -112
- package/dist/chunk-4R2TBRS7.cjs.map +1 -0
- package/dist/{chunk-AEYCHF2U.cjs → chunk-4VNAMG7K.cjs} +6 -6
- package/dist/{chunk-AEYCHF2U.cjs.map → chunk-4VNAMG7K.cjs.map} +1 -1
- package/dist/{chunk-FXLZYRV7.js → chunk-5HCVPQTD.js} +3 -3
- package/dist/{chunk-FXLZYRV7.js.map → chunk-5HCVPQTD.js.map} +1 -1
- package/dist/chunk-5M6ZTQJN.js +1374 -0
- package/dist/chunk-5M6ZTQJN.js.map +1 -0
- package/dist/{chunk-SW7WPHZ2.cjs → chunk-7E4ESNZS.cjs} +5 -5
- package/dist/{chunk-SW7WPHZ2.cjs.map → chunk-7E4ESNZS.cjs.map} +1 -1
- package/dist/{chunk-OVVKYARB.cjs → chunk-A4RAEU6X.cjs} +2 -2
- package/dist/chunk-A4RAEU6X.cjs.map +1 -0
- package/dist/{chunk-SHFLPFKN.js → chunk-BUY5X7DT.js} +4 -4
- package/dist/{chunk-SHFLPFKN.js.map → chunk-BUY5X7DT.js.map} +1 -1
- package/dist/{chunk-L7Z3C5XG.cjs → chunk-CQ73JM2N.cjs} +10 -10
- package/dist/{chunk-L7Z3C5XG.cjs.map → chunk-CQ73JM2N.cjs.map} +1 -1
- package/dist/{chunk-GGN63GU5.cjs → chunk-DRVSEV5Y.cjs} +25 -65
- package/dist/chunk-DRVSEV5Y.cjs.map +1 -0
- package/dist/{chunk-2TQHRYRK.cjs → chunk-EPMJYNEK.cjs} +4 -4
- package/dist/{chunk-2TQHRYRK.cjs.map → chunk-EPMJYNEK.cjs.map} +1 -1
- package/dist/{chunk-TKFLL33F.cjs → chunk-F6EJEELE.cjs} +9 -9
- package/dist/{chunk-TKFLL33F.cjs.map → chunk-F6EJEELE.cjs.map} +1 -1
- package/dist/{chunk-AR76DMZQ.js → chunk-FV4QVXO4.js} +2 -2
- package/dist/chunk-FV4QVXO4.js.map +1 -0
- package/dist/{chunk-O6PQYYT6.cjs → chunk-HQPFM22N.cjs} +63 -45
- package/dist/chunk-HQPFM22N.cjs.map +1 -0
- package/dist/{chunk-GMQUHK3L.js → chunk-IAXAPVOP.js} +4 -4
- package/dist/{chunk-GMQUHK3L.js.map → chunk-IAXAPVOP.js.map} +1 -1
- package/dist/{chunk-2ZSMA4EM.js → chunk-JJW5JU2G.js} +391 -367
- package/dist/chunk-JJW5JU2G.js.map +1 -0
- package/dist/{chunk-USHKSVKL.js → chunk-JWSZSM7U.js} +11 -9
- package/dist/{chunk-USHKSVKL.js.map → chunk-JWSZSM7U.js.map} +1 -1
- package/dist/{chunk-Y5XECV4O.cjs → chunk-K4AYIXVH.cjs} +4 -4
- package/dist/{chunk-Y5XECV4O.cjs.map → chunk-K4AYIXVH.cjs.map} +1 -1
- package/dist/{chunk-6NZTZOEI.js → chunk-LT6NPN3E.js} +33 -15
- package/dist/chunk-LT6NPN3E.js.map +1 -0
- package/dist/{chunk-7CF3FKP3.js → chunk-MAGA2UEJ.js} +4 -4
- package/dist/{chunk-7CF3FKP3.js.map → chunk-MAGA2UEJ.js.map} +1 -1
- package/dist/{chunk-RPFJBB5X.js → chunk-N4PK4MOG.js} +4 -4
- package/dist/{chunk-RPFJBB5X.js.map → chunk-N4PK4MOG.js.map} +1 -1
- package/dist/{chunk-TRZT7QPJ.cjs → chunk-NHJVMZIL.cjs} +19 -19
- package/dist/{chunk-TRZT7QPJ.cjs.map → chunk-NHJVMZIL.cjs.map} +1 -1
- package/dist/{chunk-BJZWMVNW.js → chunk-OBIF7QD5.js} +3 -3
- package/dist/{chunk-BJZWMVNW.js.map → chunk-OBIF7QD5.js.map} +1 -1
- package/dist/{chunk-JXRAFE3E.js → chunk-OSZMRVWP.js} +3 -3
- package/dist/{chunk-JXRAFE3E.js.map → chunk-OSZMRVWP.js.map} +1 -1
- package/dist/{chunk-SQFVIROI.js → chunk-PJ6HF3KW.js} +16 -56
- package/dist/chunk-PJ6HF3KW.js.map +1 -0
- package/dist/{chunk-CBV6EVJK.cjs → chunk-PLATPKJA.cjs} +433 -408
- package/dist/chunk-PLATPKJA.cjs.map +1 -0
- package/dist/{chunk-X2TVBX7O.js → chunk-RAXBZZKS.js} +4 -3
- package/dist/chunk-RAXBZZKS.js.map +1 -0
- package/dist/chunk-RFGQ3EQV.js +3 -0
- package/dist/chunk-RFGQ3EQV.js.map +1 -0
- package/dist/{chunk-YDLEEOJ6.js → chunk-RYFQKXXS.js} +3 -3
- package/dist/{chunk-YDLEEOJ6.js.map → chunk-RYFQKXXS.js.map} +1 -1
- package/dist/{chunk-C73WLCY3.cjs → chunk-S7UXT3V4.cjs} +21 -3
- package/dist/chunk-S7UXT3V4.cjs.map +1 -0
- package/dist/{chunk-R5GESRGB.js → chunk-SJMKDSRF.js} +37 -112
- package/dist/chunk-SJMKDSRF.js.map +1 -0
- package/dist/{chunk-YWXSGDDO.cjs → chunk-SQQMX4VC.cjs} +6 -6
- package/dist/{chunk-YWXSGDDO.cjs.map → chunk-SQQMX4VC.cjs.map} +1 -1
- package/dist/chunk-TCHOIK53.cjs +4 -0
- package/dist/chunk-TCHOIK53.cjs.map +1 -0
- package/dist/chunk-TIBULEK6.cjs +1379 -0
- package/dist/chunk-TIBULEK6.cjs.map +1 -0
- package/dist/{chunk-WECJNCGT.cjs → chunk-UTEH2LCJ.cjs} +19 -19
- package/dist/{chunk-WECJNCGT.cjs.map → chunk-UTEH2LCJ.cjs.map} +1 -1
- package/dist/{chunk-MCOVMKIS.js → chunk-WHFNGECY.js} +21 -4
- package/dist/chunk-WHFNGECY.js.map +1 -0
- package/dist/{chunk-NTXNE4YR.js → chunk-XG3SFWOH.js} +3 -3
- package/dist/{chunk-NTXNE4YR.js.map → chunk-XG3SFWOH.js.map} +1 -1
- package/dist/{chunk-UMATHB4Q.cjs → chunk-YJQDN37F.cjs} +40 -38
- package/dist/chunk-YJQDN37F.cjs.map +1 -0
- package/dist/error/index.cjs +5 -5
- package/dist/error/index.d.ts.map +1 -1
- package/dist/error/index.js +1 -1
- package/dist/error/utils.d.ts +8 -0
- package/dist/error/utils.d.ts.map +1 -0
- package/dist/eval/index.cjs +3 -3
- package/dist/eval/index.js +1 -1
- package/dist/index.cjs +87 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +20 -0
- package/dist/llm/index.d.ts +3 -1
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/llm/model/gateways/base.d.ts +42 -0
- package/dist/llm/model/gateways/base.d.ts.map +1 -0
- package/dist/llm/model/gateways/index.d.ts +3 -0
- package/dist/llm/model/gateways/index.d.ts.map +1 -0
- package/dist/llm/model/gateways/models-dev.d.ts +11 -0
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -0
- package/dist/llm/model/index.d.ts +2 -0
- package/dist/llm/model/index.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/openai-compatible.d.ts +32 -0
- package/dist/llm/model/openai-compatible.d.ts.map +1 -0
- package/dist/llm/model/provider-registry.generated.d.ts +462 -0
- package/dist/llm/model/provider-registry.generated.d.ts.map +1 -0
- package/dist/llm/model/shared.types.d.ts +8 -0
- package/dist/llm/model/shared.types.d.ts.map +1 -1
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +18 -18
- 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/options.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/test-utils/toUIMessageStream.d.ts.map +1 -1
- package/dist/loop/test-utils/tools.d.ts.map +1 -1
- package/dist/loop/types.d.ts +5 -5
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +147 -48
- package/dist/loop/workflows/agentic-execution/index.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +98 -32
- 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 +49 -16
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +147 -48
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/loop/workflows/run-state.d.ts +5 -0
- package/dist/loop/workflows/run-state.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +57 -19
- package/dist/loop/workflows/schema.d.ts.map +1 -1
- package/dist/loop/workflows/stream.d.ts +13 -0
- package/dist/loop/workflows/stream.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/memory/types.d.ts +1 -1
- package/dist/network/vNext/index.cjs +29 -29
- package/dist/network/vNext/index.cjs.map +1 -1
- package/dist/network/vNext/index.d.ts +14 -14
- package/dist/network/vNext/index.js +17 -17
- package/dist/network/vNext/index.js.map +1 -1
- package/dist/processors/index.cjs +10 -10
- package/dist/processors/index.js +1 -1
- package/dist/processors/processors/language-detector.d.ts.map +1 -1
- package/dist/processors/processors/moderation.d.ts.map +1 -1
- package/dist/processors/processors/pii-detector.d.ts.map +1 -1
- package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
- package/dist/processors/processors/structured-output.d.ts.map +1 -1
- package/dist/processors/processors/system-prompt-scrubber.d.ts.map +1 -1
- package/dist/processors/runner.d.ts +7 -7
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +9 -9
- package/dist/scores/index.js +2 -2
- package/dist/scores/scoreTraces/index.cjs +57 -68
- package/dist/scores/scoreTraces/index.cjs.map +1 -1
- package/dist/scores/scoreTraces/index.js +48 -59
- package/dist/scores/scoreTraces/index.js.map +1 -1
- package/dist/scores/scoreTraces/scoreTracesWorkflow.d.ts.map +1 -1
- package/dist/scores/scoreTraces/utils.d.ts +4 -8
- package/dist/scores/scoreTraces/utils.d.ts.map +1 -1
- package/dist/scores/types.d.ts +8 -4
- package/dist/scores/types.d.ts.map +1 -1
- package/dist/server/index.cjs +7 -7
- package/dist/server/index.js +2 -2
- package/dist/storage/base.d.ts +14 -5
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/domains/observability/base.d.ts +5 -5
- package/dist/storage/domains/observability/base.d.ts.map +1 -1
- package/dist/storage/domains/observability/inmemory.d.ts +7 -7
- package/dist/storage/domains/observability/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/scores/base.d.ts +8 -0
- package/dist/storage/domains/scores/base.d.ts.map +1 -1
- package/dist/storage/domains/scores/inmemory.d.ts +8 -0
- package/dist/storage/domains/scores/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +94 -64
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.js +59 -29
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/mock.d.ts +9 -0
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +2 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts +5 -5
- package/dist/stream/aisdk/v5/compat/ui-message.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/execute.d.ts +2 -5
- package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/input.d.ts +2 -1
- package/dist/stream/aisdk/v5/input.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output-helpers.d.ts +5 -11
- package/dist/stream/aisdk/v5/output-helpers.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts +43 -16
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/transform.d.ts +6 -6
- package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
- package/dist/stream/base/input.d.ts +2 -1
- package/dist/stream/base/input.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts +69 -82
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +4 -4
- package/dist/stream/index.d.ts +1 -1
- package/dist/stream/index.d.ts.map +1 -1
- package/dist/stream/index.js +1 -1
- package/dist/stream/types.d.ts +217 -96
- package/dist/stream/types.d.ts.map +1 -1
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.js +1 -1
- package/dist/test-utils/llm-mock.cjs +2 -2
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/tool.d.ts +6 -8
- package/dist/tools/tool.d.ts.map +1 -1
- package/dist/tools/types.d.ts +8 -7
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/validation.d.ts +2 -1
- 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/{types.d.ts → types/dynamic-argument.d.ts} +3 -3
- package/dist/types/dynamic-argument.d.ts.map +1 -0
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/zod-compat.d.ts +23 -0
- package/dist/types/zod-compat.d.ts.map +1 -0
- package/dist/utils.cjs +17 -17
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +4 -4
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.js +1 -1
- package/dist/workflows/default.d.ts +1 -1
- 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 -0
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/evented/workflow.d.ts +3 -1
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/execution-engine.d.ts +2 -1
- package/dist/workflows/execution-engine.d.ts.map +1 -1
- package/dist/workflows/index.cjs +15 -11
- package/dist/workflows/index.d.ts +1 -0
- package/dist/workflows/index.d.ts.map +1 -1
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/dist/workflows/legacy/step.d.ts +4 -4
- package/dist/workflows/legacy/step.d.ts.map +1 -1
- package/dist/workflows/legacy/types.d.ts +12 -7
- package/dist/workflows/legacy/types.d.ts.map +1 -1
- package/dist/workflows/legacy/workflow-instance.d.ts +2 -2
- package/dist/workflows/step.d.ts +3 -1
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/types.d.ts +12 -1
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/utils.d.ts +10 -0
- package/dist/workflows/utils.d.ts.map +1 -0
- package/dist/workflows/workflow.d.ts +30 -14
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/package.json +6 -3
- package/types.d.ts +1 -0
- package/dist/chunk-2ZSMA4EM.js.map +0 -1
- package/dist/chunk-6NZTZOEI.js.map +0 -1
- package/dist/chunk-AR76DMZQ.js.map +0 -1
- package/dist/chunk-C73WLCY3.cjs.map +0 -1
- package/dist/chunk-CBV6EVJK.cjs.map +0 -1
- package/dist/chunk-CE73R5W7.js +0 -3
- package/dist/chunk-GGN63GU5.cjs.map +0 -1
- package/dist/chunk-ITD7IHN5.js.map +0 -1
- package/dist/chunk-JRTFV63C.cjs.map +0 -1
- package/dist/chunk-MCOVMKIS.js.map +0 -1
- package/dist/chunk-O6PQYYT6.cjs.map +0 -1
- package/dist/chunk-OVVKYARB.cjs.map +0 -1
- package/dist/chunk-R5GESRGB.js.map +0 -1
- package/dist/chunk-SQFVIROI.js.map +0 -1
- package/dist/chunk-UMATHB4Q.cjs.map +0 -1
- package/dist/chunk-VBPPPQO3.cjs +0 -4
- package/dist/chunk-WAGAASWE.cjs.map +0 -1
- package/dist/chunk-X2TVBX7O.js.map +0 -1
- package/dist/chunk-XUAWHRUO.cjs.map +0 -1
- package/dist/types.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MastraModelGateway } from './base.js';
|
|
2
|
+
import type { ProviderConfig } from './base.js';
|
|
3
|
+
export declare class ModelsDevGateway extends MastraModelGateway {
|
|
4
|
+
readonly name = "models.dev";
|
|
5
|
+
readonly prefix: undefined;
|
|
6
|
+
private providerConfigs;
|
|
7
|
+
fetchProviders(): Promise<Record<string, ProviderConfig>>;
|
|
8
|
+
buildUrl(modelId: string, envVars: Record<string, string>): string | false;
|
|
9
|
+
buildHeaders(modelId: string, envVars: Record<string, string>): Record<string, string>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=models-dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models-dev.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/models-dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA4DhD,qBAAa,gBAAiB,SAAQ,kBAAkB;IACtD,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,QAAQ,CAAC,MAAM,YAAa;IAE5B,OAAO,CAAC,eAAe,CAAsC;IAEvD,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IA0E/D,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK;IA4B1E,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CA+BvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/llm/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/llm/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.loop.d.ts","sourceRoot":"","sources":["../../../src/llm/model/model.loop.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAU,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAGlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,cAAe,SAAQ,UAAU;;gBAMhC,EACV,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE;QACD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,uBAAuB,EAAE,CAAC;QAClC,OAAO,CAAC,EAAE,kBAAkB,CAAC;KAC9B;IA2BD,oBAAoB,CAAC,CAAC,EAAE,gBAAgB;IAUxC,gBAAgB,CAAC,CAAC,EAAE,MAAM;IAI1B,WAAW;IAIX,UAAU;IAIV,QAAQ;IAIR,OAAO,CAAC,kBAAkB;IA4B1B,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE;IAqB/E,MAAM,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAAE,EACjF,aAAa,EACb,KAAK,EACL,QAAyB,EACzB,QAAQ,EACR,KAAmB,EACnB,aAAa,EACb,UAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,SAAS,GAEV,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"model.loop.d.ts","sourceRoot":"","sources":["../../../src/llm/model/model.loop.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAU,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAGlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,cAAe,SAAQ,UAAU;;gBAMhC,EACV,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE;QACD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,uBAAuB,EAAE,CAAC;QAClC,OAAO,CAAC,EAAE,kBAAkB,CAAC;KAC9B;IA2BD,oBAAoB,CAAC,CAAC,EAAE,gBAAgB;IAUxC,gBAAgB,CAAC,CAAC,EAAE,MAAM;IAI1B,WAAW;IAIX,UAAU;IAIV,QAAQ;IAIR,OAAO,CAAC,kBAAkB;IA4B1B,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE;IAqB/E,MAAM,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAAE,EACjF,aAAa,EACb,KAAK,EACL,QAAyB,EACzB,QAAQ,EACR,KAAmB,EACnB,aAAa,EACb,UAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,SAAS,GAEV,EAAE,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,GAAG,SAAS,CAAC;CAmM9E"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { LanguageModelV2, LanguageModelV2CallOptions, LanguageModelV2StreamPart, LanguageModelV2CallWarning } from '@ai-sdk/provider-v5';
|
|
2
|
+
import type { ModelRouterModelId } from './provider-registry.generated.js';
|
|
3
|
+
import type { OpenAICompatibleConfig } from './shared.types.js';
|
|
4
|
+
export declare class OpenAICompatibleModel implements LanguageModelV2 {
|
|
5
|
+
readonly specificationVersion: "v2";
|
|
6
|
+
readonly defaultObjectGenerationMode: "json";
|
|
7
|
+
readonly supportsStructuredOutputs = true;
|
|
8
|
+
readonly supportsImageUrls = true;
|
|
9
|
+
readonly supportedUrls: Record<string, RegExp[]>;
|
|
10
|
+
readonly modelId: string;
|
|
11
|
+
readonly provider: string;
|
|
12
|
+
private url;
|
|
13
|
+
private headers;
|
|
14
|
+
private apiKey;
|
|
15
|
+
constructor(config: ModelRouterModelId | OpenAICompatibleConfig);
|
|
16
|
+
private convertMessagesToOpenAI;
|
|
17
|
+
private convertToolsToOpenAI;
|
|
18
|
+
private mapFinishReason;
|
|
19
|
+
private validateApiKey;
|
|
20
|
+
doGenerate(): Promise<never>;
|
|
21
|
+
doStream(options: LanguageModelV2CallOptions): Promise<{
|
|
22
|
+
stream: ReadableStream<LanguageModelV2StreamPart>;
|
|
23
|
+
request?: {
|
|
24
|
+
body: string;
|
|
25
|
+
};
|
|
26
|
+
response?: {
|
|
27
|
+
headers: Record<string, string>;
|
|
28
|
+
};
|
|
29
|
+
warnings: LanguageModelV2CallWarning[];
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=openai-compatible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../src/llm/model/openai-compatible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAE1B,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA4E7D,qBAAa,qBAAsB,YAAW,eAAe;IAC3D,QAAQ,CAAC,oBAAoB,EAAG,IAAI,CAAU;IAC9C,QAAQ,CAAC,2BAA2B,EAAG,MAAM,CAAU;IACvD,QAAQ,CAAC,yBAAyB,QAAQ;IAC1C,QAAQ,CAAC,iBAAiB,QAAQ;IAClC,QAAQ,CAAC,aAAa,EAAS,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAExD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,MAAM,CAAqB;gBAEvB,MAAM,EAAE,kBAAkB,GAAG,sBAAsB;IAwF/D,OAAO,CAAC,uBAAuB;IA+E/B,OAAO,CAAC,oBAAoB;IA0B5B,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,cAAc;IAiBhB,UAAU,IAAI,OAAO,CAAC,KAAK,CAAC;IAO5B,QAAQ,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC;QAC3D,MAAM,EAAE,cAAc,CAAC,yBAAyB,CAAC,CAAC;QAClD,OAAO,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3B,QAAQ,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;SAAE,CAAC;QAC/C,QAAQ,EAAE,0BAA0B,EAAE,CAAC;KACxC,CAAC;CAsQH"}
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED - DO NOT EDIT
|
|
3
|
+
* Generated from model gateway providers
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Provider configurations for OpenAI-compatible APIs
|
|
7
|
+
*/
|
|
8
|
+
export declare const PROVIDER_REGISTRY: {
|
|
9
|
+
readonly 'moonshotai-cn': {
|
|
10
|
+
readonly url: "https://api.moonshot.cn/v1/chat/completions";
|
|
11
|
+
readonly apiKeyEnvVar: "MOONSHOT_API_KEY";
|
|
12
|
+
readonly apiKeyHeader: "Authorization";
|
|
13
|
+
readonly name: "Moonshot AI (China)";
|
|
14
|
+
readonly models: readonly ["kimi-k2-0711-preview", "kimi-k2-0905-preview", "kimi-k2-turbo-preview"];
|
|
15
|
+
readonly docUrl: "https://platform.moonshot.cn/docs/api/chat";
|
|
16
|
+
};
|
|
17
|
+
readonly lucidquery: {
|
|
18
|
+
readonly url: "https://lucidquery.com/api/v1/chat/completions";
|
|
19
|
+
readonly apiKeyEnvVar: "LUCIDQUERY_API_KEY";
|
|
20
|
+
readonly apiKeyHeader: "Authorization";
|
|
21
|
+
readonly name: "LucidQuery AI";
|
|
22
|
+
readonly models: readonly ["lucidnova-rf1-100b", "lucidquery-nexus-coder"];
|
|
23
|
+
readonly docUrl: "https://lucidquery.com/api/docs";
|
|
24
|
+
};
|
|
25
|
+
readonly moonshotai: {
|
|
26
|
+
readonly url: "https://api.moonshot.ai/v1/chat/completions";
|
|
27
|
+
readonly apiKeyEnvVar: "MOONSHOT_API_KEY";
|
|
28
|
+
readonly apiKeyHeader: "Authorization";
|
|
29
|
+
readonly name: "Moonshot AI";
|
|
30
|
+
readonly models: readonly ["kimi-k2-0711-preview", "kimi-k2-0905-preview", "kimi-k2-turbo-preview"];
|
|
31
|
+
readonly docUrl: "https://platform.moonshot.ai/docs/api/chat";
|
|
32
|
+
};
|
|
33
|
+
readonly 'zai-coding-plan': {
|
|
34
|
+
readonly url: "https://api.z.ai/api/coding/paas/v4/chat/completions";
|
|
35
|
+
readonly apiKeyEnvVar: "ZHIPU_API_KEY";
|
|
36
|
+
readonly apiKeyHeader: "Authorization";
|
|
37
|
+
readonly name: "Z.AI Coding Plan";
|
|
38
|
+
readonly models: readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
39
|
+
readonly docUrl: "https://docs.z.ai/devpack/overview";
|
|
40
|
+
};
|
|
41
|
+
readonly alibaba: {
|
|
42
|
+
readonly url: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions";
|
|
43
|
+
readonly apiKeyEnvVar: "DASHSCOPE_API_KEY";
|
|
44
|
+
readonly apiKeyHeader: "Authorization";
|
|
45
|
+
readonly name: "Alibaba";
|
|
46
|
+
readonly models: readonly ["qwen3-coder-plus"];
|
|
47
|
+
readonly docUrl: "https://www.alibabacloud.com/help/en/model-studio/models";
|
|
48
|
+
};
|
|
49
|
+
readonly xai: {
|
|
50
|
+
readonly url: "https://api.x.ai/v1/chat/completions";
|
|
51
|
+
readonly apiKeyEnvVar: "XAI_API_KEY";
|
|
52
|
+
readonly apiKeyHeader: "Authorization";
|
|
53
|
+
readonly name: "xAI";
|
|
54
|
+
readonly models: readonly ["grok-2", "grok-2-1212", "grok-2-latest", "grok-2-vision", "grok-2-vision-1212", "grok-2-vision-latest", "grok-3", "grok-3-fast", "grok-3-fast-latest", "grok-3-latest", "grok-3-mini", "grok-3-mini-fast", "grok-3-mini-fast-latest", "grok-3-mini-latest", "grok-4", "grok-4-fast", "grok-4-fast-non-reasoning", "grok-beta", "grok-code-fast-1", "grok-vision-beta"];
|
|
55
|
+
readonly docUrl: "https://docs.x.ai/docs/models";
|
|
56
|
+
};
|
|
57
|
+
readonly nvidia: {
|
|
58
|
+
readonly url: "https://integrate.api.nvidia.com/v1/chat/completions";
|
|
59
|
+
readonly apiKeyEnvVar: "NVIDIA_API_KEY";
|
|
60
|
+
readonly apiKeyHeader: "Authorization";
|
|
61
|
+
readonly name: "Nvidia";
|
|
62
|
+
readonly models: readonly ["black-forest-labs/flux.1-dev", "deepseek-ai/deepseek-v3.1", "google/gemma-3-27b-it", "microsoft/phi-4-mini-instruct", "moonshotai/kimi-k2-instruct", "nvidia/cosmos-nemotron-34b", "nvidia/llama-3.1-nemotron-ultra-253b-v1", "nvidia/nemoretriever-ocr-v1", "nvidia/parakeet-tdt-0.6b-v2", "openai/gpt-oss-120b", "openai/whisper-large-v3", "qwen/qwen3-235b-a22b", "qwen/qwen3-coder-480b-a35b-instruct"];
|
|
63
|
+
readonly docUrl: "https://docs.api.nvidia.com/nim/";
|
|
64
|
+
};
|
|
65
|
+
readonly upstage: {
|
|
66
|
+
readonly url: "https://api.upstage.ai/chat/completions";
|
|
67
|
+
readonly apiKeyEnvVar: "UPSTAGE_API_KEY";
|
|
68
|
+
readonly apiKeyHeader: "Authorization";
|
|
69
|
+
readonly name: "Upstage";
|
|
70
|
+
readonly models: readonly ["solar-mini", "solar-pro2"];
|
|
71
|
+
readonly docUrl: "https://developers.upstage.ai/docs/apis/chat";
|
|
72
|
+
};
|
|
73
|
+
readonly groq: {
|
|
74
|
+
readonly url: "https://api.groq.com/openai/v1/chat/completions";
|
|
75
|
+
readonly apiKeyEnvVar: "GROQ_API_KEY";
|
|
76
|
+
readonly apiKeyHeader: "Authorization";
|
|
77
|
+
readonly name: "Groq";
|
|
78
|
+
readonly models: readonly ["deepseek-r1-distill-llama-70b", "gemma2-9b-it", "llama-3.1-8b-instant", "llama-3.3-70b-versatile", "llama-guard-3-8b", "llama3-70b-8192", "llama3-8b-8192", "meta-llama/llama-4-maverick-17b-128e-instruct", "meta-llama/llama-4-scout-17b-16e-instruct", "meta-llama/llama-guard-4-12b", "mistral-saba-24b", "moonshotai/kimi-k2-instruct", "moonshotai/kimi-k2-instruct-0905", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "qwen-qwq-32b", "qwen/qwen3-32b"];
|
|
79
|
+
readonly docUrl: "https://console.groq.com/docs/models";
|
|
80
|
+
};
|
|
81
|
+
readonly 'github-copilot': {
|
|
82
|
+
readonly url: "https://api.githubcopilot.com/chat/completions";
|
|
83
|
+
readonly apiKeyEnvVar: "GITHUB_TOKEN";
|
|
84
|
+
readonly apiKeyHeader: "Authorization";
|
|
85
|
+
readonly name: "GitHub Copilot";
|
|
86
|
+
readonly models: readonly ["claude-3.5-sonnet", "claude-3.7-sonnet", "claude-3.7-sonnet-thought", "claude-opus-4", "claude-opus-41", "claude-sonnet-4", "claude-sonnet-4.5", "gemini-2.0-flash-001", "gemini-2.5-pro", "gpt-4.1", "gpt-4o", "gpt-5", "gpt-5-codex", "gpt-5-mini", "grok-code-fast-1", "o3", "o3-mini", "o4-mini"];
|
|
87
|
+
readonly docUrl: "https://docs.github.com/en/copilot";
|
|
88
|
+
};
|
|
89
|
+
readonly mistral: {
|
|
90
|
+
readonly url: "https://api.mistral.ai/v1/chat/completions";
|
|
91
|
+
readonly apiKeyEnvVar: "MISTRAL_API_KEY";
|
|
92
|
+
readonly apiKeyHeader: "Authorization";
|
|
93
|
+
readonly name: "Mistral";
|
|
94
|
+
readonly models: readonly ["codestral-latest", "devstral-medium-2507", "devstral-small-2505", "devstral-small-2507", "magistral-medium-latest", "magistral-small", "ministral-3b-latest", "ministral-8b-latest", "mistral-large-latest", "mistral-medium-2505", "mistral-medium-2508", "mistral-medium-latest", "mistral-nemo", "mistral-small-latest", "open-mistral-7b", "open-mixtral-8x22b", "open-mixtral-8x7b", "pixtral-12b", "pixtral-large-latest"];
|
|
95
|
+
readonly docUrl: "https://docs.mistral.ai/getting-started/models/";
|
|
96
|
+
};
|
|
97
|
+
readonly vercel: {
|
|
98
|
+
readonly url: "https://ai-gateway.vercel.sh/v1/chat/completions";
|
|
99
|
+
readonly apiKeyEnvVar: "AI_GATEWAY_API_KEY";
|
|
100
|
+
readonly apiKeyHeader: "Authorization";
|
|
101
|
+
readonly name: "Vercel AI Gateway";
|
|
102
|
+
readonly models: readonly ["amazon/nova-lite", "amazon/nova-micro", "amazon/nova-pro", "anthropic/claude-3-5-haiku", "anthropic/claude-3-haiku", "anthropic/claude-3-opus", "anthropic/claude-3.5-sonnet", "anthropic/claude-3.7-sonnet", "anthropic/claude-4-1-opus", "anthropic/claude-4-opus", "anthropic/claude-4-sonnet", "anthropic/claude-4.5-sonnet", "cerebras/qwen3-coder", "deepseek/deepseek-r1", "deepseek/deepseek-r1-distill-llama-70b", "google/gemini-2.0-flash", "google/gemini-2.0-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "meta/llama-3.3-70b", "meta/llama-4-maverick", "meta/llama-4-scout", "mistral/codestral", "mistral/magistral-medium", "mistral/magistral-small", "mistral/ministral-3b", "mistral/ministral-8b", "mistral/mistral-large", "mistral/mistral-small", "mistral/mixtral-8x22b-instruct", "mistral/pixtral-12b", "mistral/pixtral-large", "moonshotai/kimi-k2", "morph/morph-v3-fast", "morph/morph-v3-large", "openai/gpt-4-turbo", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4.1-nano", "openai/gpt-4o", "openai/gpt-4o-mini", "openai/gpt-5", "openai/gpt-5-codex", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "openai/o1", "openai/o3", "openai/o3-mini", "openai/o4-mini", "vercel/v0-1.0-md", "vercel/v0-1.5-md", "xai/grok-2", "xai/grok-2-vision", "xai/grok-3", "xai/grok-3-fast", "xai/grok-3-mini", "xai/grok-3-mini-fast", "xai/grok-4", "xai/grok-4-fast", "xai/grok-4-fast-non-reasoning", "xai/grok-code-fast-1"];
|
|
103
|
+
readonly docUrl: "https://github.com/vercel/ai/tree/5eb85cc45a259553501f535b8ac79a77d0e79223/packages/gateway";
|
|
104
|
+
};
|
|
105
|
+
readonly deepseek: {
|
|
106
|
+
readonly url: "https://api.deepseek.com/chat/completions";
|
|
107
|
+
readonly apiKeyEnvVar: "DEEPSEEK_API_KEY";
|
|
108
|
+
readonly apiKeyHeader: "Authorization";
|
|
109
|
+
readonly name: "DeepSeek";
|
|
110
|
+
readonly models: readonly ["deepseek-chat", "deepseek-reasoner"];
|
|
111
|
+
readonly docUrl: "https://platform.deepseek.com/api-docs/pricing";
|
|
112
|
+
};
|
|
113
|
+
readonly 'alibaba-cn': {
|
|
114
|
+
readonly url: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions";
|
|
115
|
+
readonly apiKeyEnvVar: "DASHSCOPE_API_KEY";
|
|
116
|
+
readonly apiKeyHeader: "Authorization";
|
|
117
|
+
readonly name: "Alibaba (China)";
|
|
118
|
+
readonly models: readonly ["qwen3-coder-plus"];
|
|
119
|
+
readonly docUrl: "https://www.alibabacloud.com/help/en/model-studio/models";
|
|
120
|
+
};
|
|
121
|
+
readonly venice: {
|
|
122
|
+
readonly url: "https://api.venice.ai/api/v1/chat/completions";
|
|
123
|
+
readonly apiKeyEnvVar: "VENICE_API_KEY";
|
|
124
|
+
readonly apiKeyHeader: "Authorization";
|
|
125
|
+
readonly name: "Venice AI";
|
|
126
|
+
readonly models: readonly ["deepseek-coder-v2-lite", "deepseek-r1-671b", "dolphin-2.9.2-qwen2-72b", "llama-3.1-405b", "llama-3.2-3b", "llama-3.3-70b", "mistral-31-24b", "qwen-2.5-coder-32b", "qwen-2.5-qwq-32b", "qwen-2.5-vl", "qwen3-235b", "qwen3-4b", "venice-uncensored"];
|
|
127
|
+
readonly docUrl: "https://docs.venice.ai";
|
|
128
|
+
};
|
|
129
|
+
readonly chutes: {
|
|
130
|
+
readonly url: "https://llm.chutes.ai/v1/chat/completions";
|
|
131
|
+
readonly apiKeyEnvVar: "CHUTES_API_KEY";
|
|
132
|
+
readonly apiKeyHeader: "Authorization";
|
|
133
|
+
readonly name: "Chutes";
|
|
134
|
+
readonly models: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-30B-A3B", "Qwen/Qwen3-30B-A3B-Instruct-2507", "Qwen/Qwen3-30B-A3B-Thinking-2507", "Qwen/Qwen3-Coder-30B-A3B-Instruct", "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8", "Qwen/Qwen3-Next-80B-A3B-Instruct", "Qwen/Qwen3-Next-80B-A3B-Thinking", "chutesai/Devstral-Small-2505", "chutesai/Mistral-Small-3.2-24B-Instruct-2506", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-R1-0528-Qwen3-8B", "deepseek-ai/DeepSeek-R1-Distill-Llama-70B", "deepseek-ai/DeepSeek-V3-0324", "deepseek-ai/DeepSeek-V3.1", "deepseek-ai/DeepSeek-V3.1-Terminus", "deepseek-ai/DeepSeek-V3.1-turbo", "deepseek-ai/DeepSeek-V3.1:THINKING", "meituan-longcat/LongCat-Flash-Chat-FP8", "moonshotai/Kimi-Dev-72B", "moonshotai/Kimi-K2-Instruct-0905", "moonshotai/Kimi-K2-Instruct-75k", "moonshotai/Kimi-VL-A3B-Thinking", "openai/gpt-oss-120b", "tngtech/DeepSeek-R1T-Chimera", "tngtech/DeepSeek-TNG-R1T2-Chimera", "zai-org/GLM-4.5-Air", "zai-org/GLM-4.5-FP8", "zai-org/GLM-4.5-turbo"];
|
|
135
|
+
readonly docUrl: "https://llm.chutes.ai/v1/models";
|
|
136
|
+
};
|
|
137
|
+
readonly cortecs: {
|
|
138
|
+
readonly url: "https://api.cortecs.ai/v1/chat/completions";
|
|
139
|
+
readonly apiKeyEnvVar: "CORTECS_API_KEY";
|
|
140
|
+
readonly apiKeyHeader: "Authorization";
|
|
141
|
+
readonly name: "Cortecs";
|
|
142
|
+
readonly models: readonly ["claude-sonnet-4", "deepseek-v3-0324", "gemini-2.5-pro", "gpt-4.1", "gpt-oss-120b", "kimi-k2-instruct", "llama-3.1-405b-instruct", "nova-pro-v1", "qwen3-32b", "qwen3-coder-480b-a35b-instruct"];
|
|
143
|
+
readonly docUrl: "https://api.cortecs.ai/v1/models";
|
|
144
|
+
};
|
|
145
|
+
readonly 'github-models': {
|
|
146
|
+
readonly url: "https://models.github.ai/inference/chat/completions";
|
|
147
|
+
readonly apiKeyEnvVar: "GITHUB_TOKEN";
|
|
148
|
+
readonly apiKeyHeader: "Authorization";
|
|
149
|
+
readonly name: "GitHub Models";
|
|
150
|
+
readonly models: readonly ["ai21-labs/ai21-jamba-1.5-large", "ai21-labs/ai21-jamba-1.5-mini", "cohere/cohere-command-a", "cohere/cohere-command-r", "cohere/cohere-command-r-08-2024", "cohere/cohere-command-r-plus", "cohere/cohere-command-r-plus-08-2024", "core42/jais-30b-chat", "deepseek/deepseek-r1", "deepseek/deepseek-r1-0528", "deepseek/deepseek-v3-0324", "meta/llama-3.2-11b-vision-instruct", "meta/llama-3.2-90b-vision-instruct", "meta/llama-3.3-70b-instruct", "meta/llama-4-maverick-17b-128e-instruct-fp8", "meta/llama-4-scout-17b-16e-instruct", "meta/meta-llama-3-70b-instruct", "meta/meta-llama-3-8b-instruct", "meta/meta-llama-3.1-405b-instruct", "meta/meta-llama-3.1-70b-instruct", "meta/meta-llama-3.1-8b-instruct", "microsoft/mai-ds-r1", "microsoft/phi-3-medium-128k-instruct", "microsoft/phi-3-medium-4k-instruct", "microsoft/phi-3-mini-128k-instruct", "microsoft/phi-3-mini-4k-instruct", "microsoft/phi-3-small-128k-instruct", "microsoft/phi-3-small-8k-instruct", "microsoft/phi-3.5-mini-instruct", "microsoft/phi-3.5-moe-instruct", "microsoft/phi-3.5-vision-instruct", "microsoft/phi-4", "microsoft/phi-4-mini-instruct", "microsoft/phi-4-mini-reasoning", "microsoft/phi-4-multimodal-instruct", "microsoft/phi-4-reasoning", "mistral-ai/codestral-2501", "mistral-ai/ministral-3b", "mistral-ai/mistral-large-2411", "mistral-ai/mistral-medium-2505", "mistral-ai/mistral-nemo", "mistral-ai/mistral-small-2503", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4.1-nano", "openai/gpt-4o", "openai/gpt-4o-mini", "openai/o1", "openai/o1-mini", "openai/o1-preview", "openai/o3", "openai/o3-mini", "openai/o4-mini", "xai/grok-3", "xai/grok-3-mini"];
|
|
151
|
+
readonly docUrl: "https://docs.github.com/en/github-models";
|
|
152
|
+
};
|
|
153
|
+
readonly togetherai: {
|
|
154
|
+
readonly url: "https://api.together.xyz/v1/chat/completions";
|
|
155
|
+
readonly apiKeyEnvVar: "TOGETHER_API_KEY";
|
|
156
|
+
readonly apiKeyHeader: "Authorization";
|
|
157
|
+
readonly name: "Together AI";
|
|
158
|
+
readonly models: readonly ["Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8", "deepseek-ai/DeepSeek-R1", "deepseek-ai/DeepSeek-V3", "meta-llama/Llama-3.3-70B-Instruct-Turbo", "moonshotai/Kimi-K2-Instruct", "openai/gpt-oss-120b"];
|
|
159
|
+
readonly docUrl: "https://docs.together.ai/docs/serverless-models";
|
|
160
|
+
};
|
|
161
|
+
readonly baseten: {
|
|
162
|
+
readonly url: "https://inference.baseten.co/v1/chat/completions";
|
|
163
|
+
readonly apiKeyEnvVar: "BASETEN_API_KEY";
|
|
164
|
+
readonly apiKeyHeader: "Authorization";
|
|
165
|
+
readonly name: "Baseten";
|
|
166
|
+
readonly models: readonly ["Qwen3/Qwen3-Coder-480B-A35B-Instruct", "moonshotai/Kimi-K2-Instruct-0905"];
|
|
167
|
+
readonly docUrl: "https://docs.baseten.co/development/model-apis/overview";
|
|
168
|
+
};
|
|
169
|
+
readonly huggingface: {
|
|
170
|
+
readonly url: "https://router.huggingface.co/v1/chat/completions";
|
|
171
|
+
readonly apiKeyEnvVar: "HF_TOKEN";
|
|
172
|
+
readonly apiKeyHeader: "Authorization";
|
|
173
|
+
readonly name: "Hugging Face";
|
|
174
|
+
readonly models: readonly ["Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "Qwen/Qwen3-Next-80B-A3B-Instruct", "Qwen/Qwen3-Next-80B-A3B-Thinking", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/Deepseek-V3-0324", "moonshotai/Kimi-K2-Instruct", "moonshotai/Kimi-K2-Instruct-0905", "zai-org/GLM-4.5", "zai-org/GLM-4.5-Air"];
|
|
175
|
+
readonly docUrl: "https://huggingface.co/docs/inference-providers";
|
|
176
|
+
};
|
|
177
|
+
readonly opencode: {
|
|
178
|
+
readonly url: "https://opencode.ai/zen/v1/chat/completions";
|
|
179
|
+
readonly apiKeyEnvVar: "OPENCODE_API_KEY";
|
|
180
|
+
readonly apiKeyHeader: "Authorization";
|
|
181
|
+
readonly name: "opencode zen";
|
|
182
|
+
readonly models: readonly ["claude-3-5-haiku", "claude-opus-4-1", "claude-sonnet-4", "claude-sonnet-4-5", "code-supernova", "gpt-5", "gpt-5-codex", "grok-code", "kimi-k2", "qwen3-coder", "qwen3-max"];
|
|
183
|
+
readonly docUrl: "https://opencode.ai/docs";
|
|
184
|
+
};
|
|
185
|
+
readonly fastrouter: {
|
|
186
|
+
readonly url: "https://go.fastrouter.ai/api/v1/chat/completions";
|
|
187
|
+
readonly apiKeyEnvVar: "FASTROUTER_API_KEY";
|
|
188
|
+
readonly apiKeyHeader: "Authorization";
|
|
189
|
+
readonly name: "FastRouter";
|
|
190
|
+
readonly models: readonly ["anthropic/claude-opus-4.1", "anthropic/claude-sonnet-4", "deepseek-ai/deepseek-r1-distill-llama-70b", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "moonshotai/kimi-k2", "openai/gpt-4.1", "openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "qwen/qwen3-coder", "x-ai/grok-4"];
|
|
191
|
+
readonly docUrl: "https://fastrouter.ai/models";
|
|
192
|
+
};
|
|
193
|
+
readonly google: {
|
|
194
|
+
readonly url: "https://generativelanguage.googleapis.com/v1beta/chat/completions";
|
|
195
|
+
readonly apiKeyEnvVar: "GOOGLE_GENERATIVE_AI_API_KEY";
|
|
196
|
+
readonly apiKeyHeader: "Authorization";
|
|
197
|
+
readonly name: "Google";
|
|
198
|
+
readonly models: readonly ["gemini-1.5-flash", "gemini-1.5-flash-8b", "gemini-1.5-pro", "gemini-2.0-flash", "gemini-2.0-flash-lite", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gemini-2.5-flash-lite-preview-06-17", "gemini-2.5-flash-lite-preview-09-2025", "gemini-2.5-flash-preview-04-17", "gemini-2.5-flash-preview-05-20", "gemini-2.5-flash-preview-09-2025", "gemini-2.5-pro", "gemini-2.5-pro-preview-05-06", "gemini-2.5-pro-preview-06-05", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-live-2.5-flash-preview-native-audio"];
|
|
199
|
+
readonly docUrl: "https://ai.google.dev/gemini-api/docs/pricing";
|
|
200
|
+
};
|
|
201
|
+
readonly inception: {
|
|
202
|
+
readonly url: "https://api.inceptionlabs.ai/v1/chat/completions";
|
|
203
|
+
readonly apiKeyEnvVar: "INCEPTION_API_KEY";
|
|
204
|
+
readonly apiKeyHeader: "Authorization";
|
|
205
|
+
readonly name: "Inception";
|
|
206
|
+
readonly models: readonly ["mercury", "mercury-coder"];
|
|
207
|
+
readonly docUrl: "https://platform.inceptionlabs.ai/docs";
|
|
208
|
+
};
|
|
209
|
+
readonly wandb: {
|
|
210
|
+
readonly url: "https://api.inference.wandb.ai/v1/chat/completions";
|
|
211
|
+
readonly apiKeyEnvVar: "WANDB_API_KEY";
|
|
212
|
+
readonly apiKeyHeader: "Authorization";
|
|
213
|
+
readonly name: "Weights & Biases";
|
|
214
|
+
readonly models: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-V3-0324", "meta-llama/Llama-3.1-8B-Instruct", "meta-llama/Llama-3.3-70B-Instruct", "meta-llama/Llama-4-Scout-17B-16E-Instruct", "microsoft/Phi-4-mini-instruct", "moonshotai/Kimi-K2-Instruct"];
|
|
215
|
+
readonly docUrl: "https://weave-docs.wandb.ai/guides/integrations/inference/";
|
|
216
|
+
};
|
|
217
|
+
readonly openai: {
|
|
218
|
+
readonly url: "https://api.openai.com/v1/chat/completions";
|
|
219
|
+
readonly apiKeyEnvVar: "OPENAI_API_KEY";
|
|
220
|
+
readonly apiKeyHeader: "Authorization";
|
|
221
|
+
readonly name: "OpenAI";
|
|
222
|
+
readonly models: readonly ["codex-mini-latest", "gpt-3.5-turbo", "gpt-4", "gpt-4-turbo", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o-2024-11-20", "gpt-4o-mini", "gpt-5", "gpt-5-chat-latest", "gpt-5-codex", "gpt-5-mini", "gpt-5-nano", "o1", "o1-mini", "o1-preview", "o1-pro", "o3", "o3-deep-research", "o3-mini", "o3-pro", "o4-mini", "o4-mini-deep-research"];
|
|
223
|
+
readonly docUrl: "https://platform.openai.com/docs/models";
|
|
224
|
+
};
|
|
225
|
+
readonly 'zhipuai-coding-plan': {
|
|
226
|
+
readonly url: "https://open.bigmodel.cn/api/coding/paas/v4/chat/completions";
|
|
227
|
+
readonly apiKeyEnvVar: "ZHIPU_API_KEY";
|
|
228
|
+
readonly apiKeyHeader: "Authorization";
|
|
229
|
+
readonly name: "Zhipu AI Coding Plan";
|
|
230
|
+
readonly models: readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
231
|
+
readonly docUrl: "https://docs.bigmodel.cn/cn/coding-plan/overview";
|
|
232
|
+
};
|
|
233
|
+
readonly perplexity: {
|
|
234
|
+
readonly url: "https://api.perplexity.ai/chat/completions";
|
|
235
|
+
readonly apiKeyEnvVar: "PERPLEXITY_API_KEY";
|
|
236
|
+
readonly apiKeyHeader: "Authorization";
|
|
237
|
+
readonly name: "Perplexity";
|
|
238
|
+
readonly models: readonly ["sonar", "sonar-pro", "sonar-reasoning", "sonar-reasoning-pro"];
|
|
239
|
+
readonly docUrl: "https://docs.perplexity.ai";
|
|
240
|
+
};
|
|
241
|
+
readonly openrouter: {
|
|
242
|
+
readonly url: "https://openrouter.ai/api/v1/chat/completions";
|
|
243
|
+
readonly apiKeyEnvVar: "OPENROUTER_API_KEY";
|
|
244
|
+
readonly apiKeyHeader: "Authorization";
|
|
245
|
+
readonly name: "OpenRouter";
|
|
246
|
+
readonly models: readonly ["anthropic/claude-3.5-haiku", "anthropic/claude-3.7-sonnet", "anthropic/claude-opus-4", "anthropic/claude-opus-4.1", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-4.5", "cognitivecomputations/dolphin3.0-mistral-24b", "cognitivecomputations/dolphin3.0-r1-mistral-24b", "deepseek/deepseek-chat-v3-0324", "deepseek/deepseek-chat-v3.1", "deepseek/deepseek-r1-0528-qwen3-8b:free", "deepseek/deepseek-r1-0528:free", "deepseek/deepseek-r1-distill-llama-70b", "deepseek/deepseek-r1-distill-qwen-14b", "deepseek/deepseek-r1:free", "deepseek/deepseek-v3-base:free", "deepseek/deepseek-v3.1-terminus", "featherless/qwerky-72b", "google/gemini-2.0-flash-001", "google/gemini-2.0-flash-exp:free", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-2.5-pro-preview-05-06", "google/gemini-2.5-pro-preview-06-05", "google/gemma-2-9b-it:free", "google/gemma-3-12b-it", "google/gemma-3-27b-it", "google/gemma-3n-e4b-it", "google/gemma-3n-e4b-it:free", "meta-llama/llama-3.2-11b-vision-instruct", "meta-llama/llama-3.3-70b-instruct:free", "meta-llama/llama-4-scout:free", "microsoft/mai-ds-r1:free", "mistralai/codestral-2508", "mistralai/devstral-medium-2507", "mistralai/devstral-small-2505", "mistralai/devstral-small-2505:free", "mistralai/devstral-small-2507", "mistralai/mistral-7b-instruct:free", "mistralai/mistral-medium-3", "mistralai/mistral-medium-3.1", "mistralai/mistral-nemo:free", "mistralai/mistral-small-3.1-24b-instruct", "mistralai/mistral-small-3.2-24b-instruct", "mistralai/mistral-small-3.2-24b-instruct:free", "moonshotai/kimi-dev-72b:free", "moonshotai/kimi-k2", "moonshotai/kimi-k2-0905", "moonshotai/kimi-k2:free", "nousresearch/deephermes-3-llama-3-8b-preview", "nousresearch/hermes-4-405b", "nousresearch/hermes-4-70b", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4o-mini", "openai/gpt-5", "openai/gpt-5-chat", "openai/gpt-5-codex", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "openai/o4-mini", "openrouter/cypher-alpha:free", "openrouter/horizon-alpha", "openrouter/horizon-beta", "openrouter/sonoma-dusk-alpha", "openrouter/sonoma-sky-alpha", "qwen/qwen-2.5-coder-32b-instruct", "qwen/qwen2.5-vl-32b-instruct:free", "qwen/qwen2.5-vl-72b-instruct", "qwen/qwen2.5-vl-72b-instruct:free", "qwen/qwen3-14b:free", "qwen/qwen3-235b-a22b-07-25", "qwen/qwen3-235b-a22b-07-25:free", "qwen/qwen3-235b-a22b-thinking-2507", "qwen/qwen3-235b-a22b:free", "qwen/qwen3-30b-a3b-instruct-2507", "qwen/qwen3-30b-a3b:free", "qwen/qwen3-32b:free", "qwen/qwen3-8b:free", "qwen/qwen3-coder", "qwen/qwen3-coder:free", "qwen/qwen3-max", "qwen/qwen3-next-80b-a3b-instruct", "qwen/qwq-32b:free", "rekaai/reka-flash-3", "sarvamai/sarvam-m:free", "thudm/glm-z1-32b:free", "tngtech/deepseek-r1t2-chimera:free", "x-ai/grok-3", "x-ai/grok-3-beta", "x-ai/grok-3-mini", "x-ai/grok-3-mini-beta", "x-ai/grok-4", "x-ai/grok-4-fast", "x-ai/grok-4-fast:free", "x-ai/grok-code-fast-1", "z-ai/glm-4.5", "z-ai/glm-4.5-air", "z-ai/glm-4.5-air:free", "z-ai/glm-4.5v"];
|
|
247
|
+
readonly docUrl: "https://openrouter.ai/models";
|
|
248
|
+
};
|
|
249
|
+
readonly synthetic: {
|
|
250
|
+
readonly url: "https://api.synthetic.new/v1/chat/completions";
|
|
251
|
+
readonly apiKeyEnvVar: "SYNTHETIC_API_KEY";
|
|
252
|
+
readonly apiKeyHeader: "Authorization";
|
|
253
|
+
readonly name: "Synthetic";
|
|
254
|
+
readonly models: readonly ["hf:Qwen/Qwen2.5-Coder-32B-Instruct", "hf:Qwen/Qwen3-235B-A22B-Instruct-2507", "hf:Qwen/Qwen3-235B-A22B-Thinking-2507", "hf:Qwen/Qwen3-Coder-480B-A35B-Instruct", "hf:deepseek-ai/DeepSeek-R1", "hf:deepseek-ai/DeepSeek-R1-0528", "hf:deepseek-ai/DeepSeek-V3", "hf:deepseek-ai/DeepSeek-V3-0324", "hf:deepseek-ai/DeepSeek-V3.1", "hf:deepseek-ai/DeepSeek-V3.1-Terminus", "hf:meta-llama/Llama-3.1-405B-Instruct", "hf:meta-llama/Llama-3.1-70B-Instruct", "hf:meta-llama/Llama-3.1-8B-Instruct", "hf:meta-llama/Llama-3.3-70B-Instruct", "hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", "hf:meta-llama/Llama-4-Scout-17B-16E-Instruct", "hf:moonshotai/Kimi-K2-Instruct", "hf:moonshotai/Kimi-K2-Instruct-0905", "hf:openai/gpt-oss-120b", "hf:zai-org/GLM-4.5"];
|
|
255
|
+
readonly docUrl: "https://synthetic.new/pricing";
|
|
256
|
+
};
|
|
257
|
+
readonly deepinfra: {
|
|
258
|
+
readonly url: "https://api.deepinfra.com/v1/openai/chat/completions";
|
|
259
|
+
readonly apiKeyEnvVar: "DEEPINFRA_API_KEY";
|
|
260
|
+
readonly apiKeyHeader: "Authorization";
|
|
261
|
+
readonly name: "Deep Infra";
|
|
262
|
+
readonly models: readonly ["Qwen/Qwen3-Coder-480B-A35B-Instruct", "Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo", "moonshotai/Kimi-K2-Instruct", "zai-org/GLM-4.5"];
|
|
263
|
+
readonly docUrl: "https://deepinfra.com/models";
|
|
264
|
+
};
|
|
265
|
+
readonly zhipuai: {
|
|
266
|
+
readonly url: "https://open.bigmodel.cn/api/paas/v4/chat/completions";
|
|
267
|
+
readonly apiKeyEnvVar: "ZHIPU_API_KEY";
|
|
268
|
+
readonly apiKeyHeader: "Authorization";
|
|
269
|
+
readonly name: "Zhipu AI";
|
|
270
|
+
readonly models: readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
271
|
+
readonly docUrl: "https://docs.z.ai/guides/overview/pricing";
|
|
272
|
+
};
|
|
273
|
+
readonly submodel: {
|
|
274
|
+
readonly url: "https://llm.submodel.ai/v1/chat/completions";
|
|
275
|
+
readonly apiKeyEnvVar: "SUBMODEL_INSTAGEN_ACCESS_KEY";
|
|
276
|
+
readonly apiKeyHeader: "Authorization";
|
|
277
|
+
readonly name: "submodel";
|
|
278
|
+
readonly models: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-V3-0324", "deepseek-ai/DeepSeek-V3.1", "openai/gpt-oss-120b", "zai-org/GLM-4.5-Air", "zai-org/GLM-4.5-FP8"];
|
|
279
|
+
readonly docUrl: "https://submodel.gitbook.io";
|
|
280
|
+
};
|
|
281
|
+
readonly zai: {
|
|
282
|
+
readonly url: "https://api.z.ai/api/paas/v4/chat/completions";
|
|
283
|
+
readonly apiKeyEnvVar: "ZHIPU_API_KEY";
|
|
284
|
+
readonly apiKeyHeader: "Authorization";
|
|
285
|
+
readonly name: "Z.AI";
|
|
286
|
+
readonly models: readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
287
|
+
readonly docUrl: "https://docs.z.ai/guides/overview/pricing";
|
|
288
|
+
};
|
|
289
|
+
readonly inference: {
|
|
290
|
+
readonly url: "https://inference.net/v1/chat/completions";
|
|
291
|
+
readonly apiKeyEnvVar: "INFERENCE_API_KEY";
|
|
292
|
+
readonly apiKeyHeader: "Authorization";
|
|
293
|
+
readonly name: "Inference";
|
|
294
|
+
readonly models: readonly ["google/gemma-3", "meta/llama-3.1-8b-instruct", "meta/llama-3.2-11b-vision-instruct", "meta/llama-3.2-1b-instruct", "meta/llama-3.2-3b-instruct", "mistral/mistral-nemo-12b-instruct", "osmosis/osmosis-structure-0.6b", "qwen/qwen-2.5-7b-vision-instruct", "qwen/qwen3-embedding-4b"];
|
|
295
|
+
readonly docUrl: "https://inference.net/models";
|
|
296
|
+
};
|
|
297
|
+
readonly requesty: {
|
|
298
|
+
readonly url: "https://router.requesty.ai/v1/chat/completions";
|
|
299
|
+
readonly apiKeyEnvVar: "REQUESTY_API_KEY";
|
|
300
|
+
readonly apiKeyHeader: "Authorization";
|
|
301
|
+
readonly name: "Requesty";
|
|
302
|
+
readonly models: readonly ["anthropic/claude-3-7-sonnet", "anthropic/claude-4-sonnet-20250522", "anthropic/claude-opus-4", "anthropic/claude-opus-4-1-20250805", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4o-mini", "openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/o4-mini"];
|
|
303
|
+
readonly docUrl: "https://requesty.ai/solution/llm-routing/models";
|
|
304
|
+
};
|
|
305
|
+
readonly morph: {
|
|
306
|
+
readonly url: "https://api.morphllm.com/v1/chat/completions";
|
|
307
|
+
readonly apiKeyEnvVar: "MORPH_API_KEY";
|
|
308
|
+
readonly apiKeyHeader: "Authorization";
|
|
309
|
+
readonly name: "Morph";
|
|
310
|
+
readonly models: readonly ["auto", "morph-v3-fast", "morph-v3-large"];
|
|
311
|
+
readonly docUrl: "https://docs.morphllm.com/api-reference/introduction";
|
|
312
|
+
};
|
|
313
|
+
readonly lmstudio: {
|
|
314
|
+
readonly url: "http://127.0.0.1:1234/v1/chat/completions";
|
|
315
|
+
readonly apiKeyEnvVar: "LMSTUDIO_API_KEY";
|
|
316
|
+
readonly apiKeyHeader: "Authorization";
|
|
317
|
+
readonly name: "LMStudio";
|
|
318
|
+
readonly models: readonly ["openai/gpt-oss-20b", "qwen/qwen3-30b-a3b-2507", "qwen/qwen3-coder-30b"];
|
|
319
|
+
readonly docUrl: "https://lmstudio.ai/models";
|
|
320
|
+
};
|
|
321
|
+
readonly anthropic: {
|
|
322
|
+
readonly url: "https://api.anthropic.com/v1/chat/completions";
|
|
323
|
+
readonly apiKeyEnvVar: "ANTHROPIC_API_KEY";
|
|
324
|
+
readonly apiKeyHeader: "x-api-key";
|
|
325
|
+
readonly name: "Anthropic";
|
|
326
|
+
readonly models: readonly ["claude-3-5-haiku-20241022", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-7-sonnet-20250219", "claude-3-haiku-20240307", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-opus-4-1-20250805", "claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-sonnet-4-5-20250929"];
|
|
327
|
+
readonly docUrl: "https://docs.anthropic.com/en/docs/about-claude/models";
|
|
328
|
+
};
|
|
329
|
+
readonly 'fireworks-ai': {
|
|
330
|
+
readonly url: "https://api.fireworks.ai/inference/v1/chat/completions";
|
|
331
|
+
readonly apiKeyEnvVar: "FIREWORKS_API_KEY";
|
|
332
|
+
readonly apiKeyHeader: "Authorization";
|
|
333
|
+
readonly name: "Fireworks AI";
|
|
334
|
+
readonly models: readonly ["accounts/fireworks/models/deepseek-r1-0528", "accounts/fireworks/models/deepseek-v3-0324", "accounts/fireworks/models/deepseek-v3p1", "accounts/fireworks/models/glm-4p5", "accounts/fireworks/models/glm-4p5-air", "accounts/fireworks/models/gpt-oss-120b", "accounts/fireworks/models/gpt-oss-20b", "accounts/fireworks/models/kimi-k2-instruct", "accounts/fireworks/models/qwen3-235b-a22b", "accounts/fireworks/models/qwen3-coder-480b-a35b-instruct"];
|
|
335
|
+
readonly docUrl: "https://fireworks.ai/docs/";
|
|
336
|
+
};
|
|
337
|
+
readonly modelscope: {
|
|
338
|
+
readonly url: "https://api-inference.modelscope.cn/v1/chat/completions";
|
|
339
|
+
readonly apiKeyEnvVar: "MODELSCOPE_API_KEY";
|
|
340
|
+
readonly apiKeyHeader: "Authorization";
|
|
341
|
+
readonly name: "ModelScope";
|
|
342
|
+
readonly models: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-30B-A3B-Instruct-2507", "Qwen/Qwen3-30B-A3B-Thinking-2507", "Qwen/Qwen3-Coder-30B-A3B-Instruct", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "ZhipuAI/GLM-4.5"];
|
|
343
|
+
readonly docUrl: "https://modelscope.cn/docs/model-service/API-Inference/intro";
|
|
344
|
+
};
|
|
345
|
+
readonly llama: {
|
|
346
|
+
readonly url: "https://api.llama.com/compat/v1/chat/completions";
|
|
347
|
+
readonly apiKeyEnvVar: "LLAMA_API_KEY";
|
|
348
|
+
readonly apiKeyHeader: "Authorization";
|
|
349
|
+
readonly name: "Llama";
|
|
350
|
+
readonly models: readonly ["cerebras-llama-4-maverick-17b-128e-instruct", "cerebras-llama-4-scout-17b-16e-instruct", "groq-llama-4-maverick-17b-128e-instruct", "llama-3.3-70b-instruct", "llama-3.3-8b-instruct", "llama-4-maverick-17b-128e-instruct-fp8", "llama-4-scout-17b-16e-instruct-fp8"];
|
|
351
|
+
readonly docUrl: "https://llama.developer.meta.com/docs/models";
|
|
352
|
+
};
|
|
353
|
+
readonly cerebras: {
|
|
354
|
+
readonly url: "https://api.cerebras.ai/v1/chat/completions";
|
|
355
|
+
readonly apiKeyEnvVar: "CEREBRAS_API_KEY";
|
|
356
|
+
readonly apiKeyHeader: "Authorization";
|
|
357
|
+
readonly name: "Cerebras";
|
|
358
|
+
readonly models: readonly ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "qwen-3-coder-480b"];
|
|
359
|
+
readonly docUrl: "https://inference-docs.cerebras.ai/models/overview";
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* Available models per provider
|
|
364
|
+
*/
|
|
365
|
+
export declare const PROVIDER_MODELS: {
|
|
366
|
+
readonly 'moonshotai-cn': readonly ["kimi-k2-0711-preview", "kimi-k2-0905-preview", "kimi-k2-turbo-preview"];
|
|
367
|
+
readonly lucidquery: readonly ["lucidnova-rf1-100b", "lucidquery-nexus-coder"];
|
|
368
|
+
readonly moonshotai: readonly ["kimi-k2-0711-preview", "kimi-k2-0905-preview", "kimi-k2-turbo-preview"];
|
|
369
|
+
readonly 'zai-coding-plan': readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
370
|
+
readonly alibaba: readonly ["qwen3-coder-plus"];
|
|
371
|
+
readonly xai: readonly ["grok-2", "grok-2-1212", "grok-2-latest", "grok-2-vision", "grok-2-vision-1212", "grok-2-vision-latest", "grok-3", "grok-3-fast", "grok-3-fast-latest", "grok-3-latest", "grok-3-mini", "grok-3-mini-fast", "grok-3-mini-fast-latest", "grok-3-mini-latest", "grok-4", "grok-4-fast", "grok-4-fast-non-reasoning", "grok-beta", "grok-code-fast-1", "grok-vision-beta"];
|
|
372
|
+
readonly nvidia: readonly ["black-forest-labs/flux.1-dev", "deepseek-ai/deepseek-v3.1", "google/gemma-3-27b-it", "microsoft/phi-4-mini-instruct", "moonshotai/kimi-k2-instruct", "nvidia/cosmos-nemotron-34b", "nvidia/llama-3.1-nemotron-ultra-253b-v1", "nvidia/nemoretriever-ocr-v1", "nvidia/parakeet-tdt-0.6b-v2", "openai/gpt-oss-120b", "openai/whisper-large-v3", "qwen/qwen3-235b-a22b", "qwen/qwen3-coder-480b-a35b-instruct"];
|
|
373
|
+
readonly upstage: readonly ["solar-mini", "solar-pro2"];
|
|
374
|
+
readonly groq: readonly ["deepseek-r1-distill-llama-70b", "gemma2-9b-it", "llama-3.1-8b-instant", "llama-3.3-70b-versatile", "llama-guard-3-8b", "llama3-70b-8192", "llama3-8b-8192", "meta-llama/llama-4-maverick-17b-128e-instruct", "meta-llama/llama-4-scout-17b-16e-instruct", "meta-llama/llama-guard-4-12b", "mistral-saba-24b", "moonshotai/kimi-k2-instruct", "moonshotai/kimi-k2-instruct-0905", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "qwen-qwq-32b", "qwen/qwen3-32b"];
|
|
375
|
+
readonly 'github-copilot': readonly ["claude-3.5-sonnet", "claude-3.7-sonnet", "claude-3.7-sonnet-thought", "claude-opus-4", "claude-opus-41", "claude-sonnet-4", "claude-sonnet-4.5", "gemini-2.0-flash-001", "gemini-2.5-pro", "gpt-4.1", "gpt-4o", "gpt-5", "gpt-5-codex", "gpt-5-mini", "grok-code-fast-1", "o3", "o3-mini", "o4-mini"];
|
|
376
|
+
readonly mistral: readonly ["codestral-latest", "devstral-medium-2507", "devstral-small-2505", "devstral-small-2507", "magistral-medium-latest", "magistral-small", "ministral-3b-latest", "ministral-8b-latest", "mistral-large-latest", "mistral-medium-2505", "mistral-medium-2508", "mistral-medium-latest", "mistral-nemo", "mistral-small-latest", "open-mistral-7b", "open-mixtral-8x22b", "open-mixtral-8x7b", "pixtral-12b", "pixtral-large-latest"];
|
|
377
|
+
readonly vercel: readonly ["amazon/nova-lite", "amazon/nova-micro", "amazon/nova-pro", "anthropic/claude-3-5-haiku", "anthropic/claude-3-haiku", "anthropic/claude-3-opus", "anthropic/claude-3.5-sonnet", "anthropic/claude-3.7-sonnet", "anthropic/claude-4-1-opus", "anthropic/claude-4-opus", "anthropic/claude-4-sonnet", "anthropic/claude-4.5-sonnet", "cerebras/qwen3-coder", "deepseek/deepseek-r1", "deepseek/deepseek-r1-distill-llama-70b", "google/gemini-2.0-flash", "google/gemini-2.0-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "meta/llama-3.3-70b", "meta/llama-4-maverick", "meta/llama-4-scout", "mistral/codestral", "mistral/magistral-medium", "mistral/magistral-small", "mistral/ministral-3b", "mistral/ministral-8b", "mistral/mistral-large", "mistral/mistral-small", "mistral/mixtral-8x22b-instruct", "mistral/pixtral-12b", "mistral/pixtral-large", "moonshotai/kimi-k2", "morph/morph-v3-fast", "morph/morph-v3-large", "openai/gpt-4-turbo", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4.1-nano", "openai/gpt-4o", "openai/gpt-4o-mini", "openai/gpt-5", "openai/gpt-5-codex", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "openai/o1", "openai/o3", "openai/o3-mini", "openai/o4-mini", "vercel/v0-1.0-md", "vercel/v0-1.5-md", "xai/grok-2", "xai/grok-2-vision", "xai/grok-3", "xai/grok-3-fast", "xai/grok-3-mini", "xai/grok-3-mini-fast", "xai/grok-4", "xai/grok-4-fast", "xai/grok-4-fast-non-reasoning", "xai/grok-code-fast-1"];
|
|
378
|
+
readonly deepseek: readonly ["deepseek-chat", "deepseek-reasoner"];
|
|
379
|
+
readonly 'alibaba-cn': readonly ["qwen3-coder-plus"];
|
|
380
|
+
readonly venice: readonly ["deepseek-coder-v2-lite", "deepseek-r1-671b", "dolphin-2.9.2-qwen2-72b", "llama-3.1-405b", "llama-3.2-3b", "llama-3.3-70b", "mistral-31-24b", "qwen-2.5-coder-32b", "qwen-2.5-qwq-32b", "qwen-2.5-vl", "qwen3-235b", "qwen3-4b", "venice-uncensored"];
|
|
381
|
+
readonly chutes: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-30B-A3B", "Qwen/Qwen3-30B-A3B-Instruct-2507", "Qwen/Qwen3-30B-A3B-Thinking-2507", "Qwen/Qwen3-Coder-30B-A3B-Instruct", "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8", "Qwen/Qwen3-Next-80B-A3B-Instruct", "Qwen/Qwen3-Next-80B-A3B-Thinking", "chutesai/Devstral-Small-2505", "chutesai/Mistral-Small-3.2-24B-Instruct-2506", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-R1-0528-Qwen3-8B", "deepseek-ai/DeepSeek-R1-Distill-Llama-70B", "deepseek-ai/DeepSeek-V3-0324", "deepseek-ai/DeepSeek-V3.1", "deepseek-ai/DeepSeek-V3.1-Terminus", "deepseek-ai/DeepSeek-V3.1-turbo", "deepseek-ai/DeepSeek-V3.1:THINKING", "meituan-longcat/LongCat-Flash-Chat-FP8", "moonshotai/Kimi-Dev-72B", "moonshotai/Kimi-K2-Instruct-0905", "moonshotai/Kimi-K2-Instruct-75k", "moonshotai/Kimi-VL-A3B-Thinking", "openai/gpt-oss-120b", "tngtech/DeepSeek-R1T-Chimera", "tngtech/DeepSeek-TNG-R1T2-Chimera", "zai-org/GLM-4.5-Air", "zai-org/GLM-4.5-FP8", "zai-org/GLM-4.5-turbo"];
|
|
382
|
+
readonly cortecs: readonly ["claude-sonnet-4", "deepseek-v3-0324", "gemini-2.5-pro", "gpt-4.1", "gpt-oss-120b", "kimi-k2-instruct", "llama-3.1-405b-instruct", "nova-pro-v1", "qwen3-32b", "qwen3-coder-480b-a35b-instruct"];
|
|
383
|
+
readonly 'github-models': readonly ["ai21-labs/ai21-jamba-1.5-large", "ai21-labs/ai21-jamba-1.5-mini", "cohere/cohere-command-a", "cohere/cohere-command-r", "cohere/cohere-command-r-08-2024", "cohere/cohere-command-r-plus", "cohere/cohere-command-r-plus-08-2024", "core42/jais-30b-chat", "deepseek/deepseek-r1", "deepseek/deepseek-r1-0528", "deepseek/deepseek-v3-0324", "meta/llama-3.2-11b-vision-instruct", "meta/llama-3.2-90b-vision-instruct", "meta/llama-3.3-70b-instruct", "meta/llama-4-maverick-17b-128e-instruct-fp8", "meta/llama-4-scout-17b-16e-instruct", "meta/meta-llama-3-70b-instruct", "meta/meta-llama-3-8b-instruct", "meta/meta-llama-3.1-405b-instruct", "meta/meta-llama-3.1-70b-instruct", "meta/meta-llama-3.1-8b-instruct", "microsoft/mai-ds-r1", "microsoft/phi-3-medium-128k-instruct", "microsoft/phi-3-medium-4k-instruct", "microsoft/phi-3-mini-128k-instruct", "microsoft/phi-3-mini-4k-instruct", "microsoft/phi-3-small-128k-instruct", "microsoft/phi-3-small-8k-instruct", "microsoft/phi-3.5-mini-instruct", "microsoft/phi-3.5-moe-instruct", "microsoft/phi-3.5-vision-instruct", "microsoft/phi-4", "microsoft/phi-4-mini-instruct", "microsoft/phi-4-mini-reasoning", "microsoft/phi-4-multimodal-instruct", "microsoft/phi-4-reasoning", "mistral-ai/codestral-2501", "mistral-ai/ministral-3b", "mistral-ai/mistral-large-2411", "mistral-ai/mistral-medium-2505", "mistral-ai/mistral-nemo", "mistral-ai/mistral-small-2503", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4.1-nano", "openai/gpt-4o", "openai/gpt-4o-mini", "openai/o1", "openai/o1-mini", "openai/o1-preview", "openai/o3", "openai/o3-mini", "openai/o4-mini", "xai/grok-3", "xai/grok-3-mini"];
|
|
384
|
+
readonly togetherai: readonly ["Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8", "deepseek-ai/DeepSeek-R1", "deepseek-ai/DeepSeek-V3", "meta-llama/Llama-3.3-70B-Instruct-Turbo", "moonshotai/Kimi-K2-Instruct", "openai/gpt-oss-120b"];
|
|
385
|
+
readonly baseten: readonly ["Qwen3/Qwen3-Coder-480B-A35B-Instruct", "moonshotai/Kimi-K2-Instruct-0905"];
|
|
386
|
+
readonly huggingface: readonly ["Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "Qwen/Qwen3-Next-80B-A3B-Instruct", "Qwen/Qwen3-Next-80B-A3B-Thinking", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/Deepseek-V3-0324", "moonshotai/Kimi-K2-Instruct", "moonshotai/Kimi-K2-Instruct-0905", "zai-org/GLM-4.5", "zai-org/GLM-4.5-Air"];
|
|
387
|
+
readonly opencode: readonly ["claude-3-5-haiku", "claude-opus-4-1", "claude-sonnet-4", "claude-sonnet-4-5", "code-supernova", "gpt-5", "gpt-5-codex", "grok-code", "kimi-k2", "qwen3-coder", "qwen3-max"];
|
|
388
|
+
readonly fastrouter: readonly ["anthropic/claude-opus-4.1", "anthropic/claude-sonnet-4", "deepseek-ai/deepseek-r1-distill-llama-70b", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "moonshotai/kimi-k2", "openai/gpt-4.1", "openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "qwen/qwen3-coder", "x-ai/grok-4"];
|
|
389
|
+
readonly google: readonly ["gemini-1.5-flash", "gemini-1.5-flash-8b", "gemini-1.5-pro", "gemini-2.0-flash", "gemini-2.0-flash-lite", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gemini-2.5-flash-lite-preview-06-17", "gemini-2.5-flash-lite-preview-09-2025", "gemini-2.5-flash-preview-04-17", "gemini-2.5-flash-preview-05-20", "gemini-2.5-flash-preview-09-2025", "gemini-2.5-pro", "gemini-2.5-pro-preview-05-06", "gemini-2.5-pro-preview-06-05", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-live-2.5-flash-preview-native-audio"];
|
|
390
|
+
readonly inception: readonly ["mercury", "mercury-coder"];
|
|
391
|
+
readonly wandb: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-V3-0324", "meta-llama/Llama-3.1-8B-Instruct", "meta-llama/Llama-3.3-70B-Instruct", "meta-llama/Llama-4-Scout-17B-16E-Instruct", "microsoft/Phi-4-mini-instruct", "moonshotai/Kimi-K2-Instruct"];
|
|
392
|
+
readonly openai: readonly ["codex-mini-latest", "gpt-3.5-turbo", "gpt-4", "gpt-4-turbo", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o-2024-11-20", "gpt-4o-mini", "gpt-5", "gpt-5-chat-latest", "gpt-5-codex", "gpt-5-mini", "gpt-5-nano", "o1", "o1-mini", "o1-preview", "o1-pro", "o3", "o3-deep-research", "o3-mini", "o3-pro", "o4-mini", "o4-mini-deep-research"];
|
|
393
|
+
readonly 'zhipuai-coding-plan': readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
394
|
+
readonly perplexity: readonly ["sonar", "sonar-pro", "sonar-reasoning", "sonar-reasoning-pro"];
|
|
395
|
+
readonly openrouter: readonly ["anthropic/claude-3.5-haiku", "anthropic/claude-3.7-sonnet", "anthropic/claude-opus-4", "anthropic/claude-opus-4.1", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-4.5", "cognitivecomputations/dolphin3.0-mistral-24b", "cognitivecomputations/dolphin3.0-r1-mistral-24b", "deepseek/deepseek-chat-v3-0324", "deepseek/deepseek-chat-v3.1", "deepseek/deepseek-r1-0528-qwen3-8b:free", "deepseek/deepseek-r1-0528:free", "deepseek/deepseek-r1-distill-llama-70b", "deepseek/deepseek-r1-distill-qwen-14b", "deepseek/deepseek-r1:free", "deepseek/deepseek-v3-base:free", "deepseek/deepseek-v3.1-terminus", "featherless/qwerky-72b", "google/gemini-2.0-flash-001", "google/gemini-2.0-flash-exp:free", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-2.5-pro-preview-05-06", "google/gemini-2.5-pro-preview-06-05", "google/gemma-2-9b-it:free", "google/gemma-3-12b-it", "google/gemma-3-27b-it", "google/gemma-3n-e4b-it", "google/gemma-3n-e4b-it:free", "meta-llama/llama-3.2-11b-vision-instruct", "meta-llama/llama-3.3-70b-instruct:free", "meta-llama/llama-4-scout:free", "microsoft/mai-ds-r1:free", "mistralai/codestral-2508", "mistralai/devstral-medium-2507", "mistralai/devstral-small-2505", "mistralai/devstral-small-2505:free", "mistralai/devstral-small-2507", "mistralai/mistral-7b-instruct:free", "mistralai/mistral-medium-3", "mistralai/mistral-medium-3.1", "mistralai/mistral-nemo:free", "mistralai/mistral-small-3.1-24b-instruct", "mistralai/mistral-small-3.2-24b-instruct", "mistralai/mistral-small-3.2-24b-instruct:free", "moonshotai/kimi-dev-72b:free", "moonshotai/kimi-k2", "moonshotai/kimi-k2-0905", "moonshotai/kimi-k2:free", "nousresearch/deephermes-3-llama-3-8b-preview", "nousresearch/hermes-4-405b", "nousresearch/hermes-4-70b", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4o-mini", "openai/gpt-5", "openai/gpt-5-chat", "openai/gpt-5-codex", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "openai/o4-mini", "openrouter/cypher-alpha:free", "openrouter/horizon-alpha", "openrouter/horizon-beta", "openrouter/sonoma-dusk-alpha", "openrouter/sonoma-sky-alpha", "qwen/qwen-2.5-coder-32b-instruct", "qwen/qwen2.5-vl-32b-instruct:free", "qwen/qwen2.5-vl-72b-instruct", "qwen/qwen2.5-vl-72b-instruct:free", "qwen/qwen3-14b:free", "qwen/qwen3-235b-a22b-07-25", "qwen/qwen3-235b-a22b-07-25:free", "qwen/qwen3-235b-a22b-thinking-2507", "qwen/qwen3-235b-a22b:free", "qwen/qwen3-30b-a3b-instruct-2507", "qwen/qwen3-30b-a3b:free", "qwen/qwen3-32b:free", "qwen/qwen3-8b:free", "qwen/qwen3-coder", "qwen/qwen3-coder:free", "qwen/qwen3-max", "qwen/qwen3-next-80b-a3b-instruct", "qwen/qwq-32b:free", "rekaai/reka-flash-3", "sarvamai/sarvam-m:free", "thudm/glm-z1-32b:free", "tngtech/deepseek-r1t2-chimera:free", "x-ai/grok-3", "x-ai/grok-3-beta", "x-ai/grok-3-mini", "x-ai/grok-3-mini-beta", "x-ai/grok-4", "x-ai/grok-4-fast", "x-ai/grok-4-fast:free", "x-ai/grok-code-fast-1", "z-ai/glm-4.5", "z-ai/glm-4.5-air", "z-ai/glm-4.5-air:free", "z-ai/glm-4.5v"];
|
|
396
|
+
readonly synthetic: readonly ["hf:Qwen/Qwen2.5-Coder-32B-Instruct", "hf:Qwen/Qwen3-235B-A22B-Instruct-2507", "hf:Qwen/Qwen3-235B-A22B-Thinking-2507", "hf:Qwen/Qwen3-Coder-480B-A35B-Instruct", "hf:deepseek-ai/DeepSeek-R1", "hf:deepseek-ai/DeepSeek-R1-0528", "hf:deepseek-ai/DeepSeek-V3", "hf:deepseek-ai/DeepSeek-V3-0324", "hf:deepseek-ai/DeepSeek-V3.1", "hf:deepseek-ai/DeepSeek-V3.1-Terminus", "hf:meta-llama/Llama-3.1-405B-Instruct", "hf:meta-llama/Llama-3.1-70B-Instruct", "hf:meta-llama/Llama-3.1-8B-Instruct", "hf:meta-llama/Llama-3.3-70B-Instruct", "hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", "hf:meta-llama/Llama-4-Scout-17B-16E-Instruct", "hf:moonshotai/Kimi-K2-Instruct", "hf:moonshotai/Kimi-K2-Instruct-0905", "hf:openai/gpt-oss-120b", "hf:zai-org/GLM-4.5"];
|
|
397
|
+
readonly deepinfra: readonly ["Qwen/Qwen3-Coder-480B-A35B-Instruct", "Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo", "moonshotai/Kimi-K2-Instruct", "zai-org/GLM-4.5"];
|
|
398
|
+
readonly zhipuai: readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
399
|
+
readonly submodel: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8", "deepseek-ai/DeepSeek-R1-0528", "deepseek-ai/DeepSeek-V3-0324", "deepseek-ai/DeepSeek-V3.1", "openai/gpt-oss-120b", "zai-org/GLM-4.5-Air", "zai-org/GLM-4.5-FP8"];
|
|
400
|
+
readonly zai: readonly ["glm-4.5", "glm-4.5-air", "glm-4.5-flash", "glm-4.5v", "glm-4.6"];
|
|
401
|
+
readonly inference: readonly ["google/gemma-3", "meta/llama-3.1-8b-instruct", "meta/llama-3.2-11b-vision-instruct", "meta/llama-3.2-1b-instruct", "meta/llama-3.2-3b-instruct", "mistral/mistral-nemo-12b-instruct", "osmosis/osmosis-structure-0.6b", "qwen/qwen-2.5-7b-vision-instruct", "qwen/qwen3-embedding-4b"];
|
|
402
|
+
readonly requesty: readonly ["anthropic/claude-3-7-sonnet", "anthropic/claude-4-sonnet-20250522", "anthropic/claude-opus-4", "anthropic/claude-opus-4-1-20250805", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4o-mini", "openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/o4-mini"];
|
|
403
|
+
readonly morph: readonly ["auto", "morph-v3-fast", "morph-v3-large"];
|
|
404
|
+
readonly lmstudio: readonly ["openai/gpt-oss-20b", "qwen/qwen3-30b-a3b-2507", "qwen/qwen3-coder-30b"];
|
|
405
|
+
readonly anthropic: readonly ["claude-3-5-haiku-20241022", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-7-sonnet-20250219", "claude-3-haiku-20240307", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-opus-4-1-20250805", "claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-sonnet-4-5-20250929"];
|
|
406
|
+
readonly 'fireworks-ai': readonly ["accounts/fireworks/models/deepseek-r1-0528", "accounts/fireworks/models/deepseek-v3-0324", "accounts/fireworks/models/deepseek-v3p1", "accounts/fireworks/models/glm-4p5", "accounts/fireworks/models/glm-4p5-air", "accounts/fireworks/models/gpt-oss-120b", "accounts/fireworks/models/gpt-oss-20b", "accounts/fireworks/models/kimi-k2-instruct", "accounts/fireworks/models/qwen3-235b-a22b", "accounts/fireworks/models/qwen3-coder-480b-a35b-instruct"];
|
|
407
|
+
readonly modelscope: readonly ["Qwen/Qwen3-235B-A22B-Instruct-2507", "Qwen/Qwen3-235B-A22B-Thinking-2507", "Qwen/Qwen3-30B-A3B-Instruct-2507", "Qwen/Qwen3-30B-A3B-Thinking-2507", "Qwen/Qwen3-Coder-30B-A3B-Instruct", "Qwen/Qwen3-Coder-480B-A35B-Instruct", "ZhipuAI/GLM-4.5"];
|
|
408
|
+
readonly llama: readonly ["cerebras-llama-4-maverick-17b-128e-instruct", "cerebras-llama-4-scout-17b-16e-instruct", "groq-llama-4-maverick-17b-128e-instruct", "llama-3.3-70b-instruct", "llama-3.3-8b-instruct", "llama-4-maverick-17b-128e-instruct-fp8", "llama-4-scout-17b-16e-instruct-fp8"];
|
|
409
|
+
readonly cerebras: readonly ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "qwen-3-coder-480b"];
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Type definitions for autocomplete support
|
|
413
|
+
*/
|
|
414
|
+
export type ProviderModels = typeof PROVIDER_MODELS;
|
|
415
|
+
export type Provider = keyof ProviderModels;
|
|
416
|
+
export type ModelForProvider<P extends Provider> = ProviderModels[P][number];
|
|
417
|
+
/**
|
|
418
|
+
* OpenAI-compatible model ID type
|
|
419
|
+
* Full provider/model paths (e.g., "openai/gpt-4o", "anthropic/claude-3-5-sonnet-20241022")
|
|
420
|
+
*/
|
|
421
|
+
export type ModelRouterModelId = {
|
|
422
|
+
[P in Provider]: `${P}/${ModelForProvider<P>}`;
|
|
423
|
+
}[Provider] | (string & {});
|
|
424
|
+
/**
|
|
425
|
+
* Get provider configuration by provider ID
|
|
426
|
+
*/
|
|
427
|
+
export declare function getProviderConfig(providerId: string): ProviderConfig | undefined;
|
|
428
|
+
/**
|
|
429
|
+
* Check if a provider is registered
|
|
430
|
+
*/
|
|
431
|
+
export declare function isProviderRegistered(providerId: string): boolean;
|
|
432
|
+
/**
|
|
433
|
+
* Get all registered provider IDs
|
|
434
|
+
*/
|
|
435
|
+
export declare function getRegisteredProviders(): string[];
|
|
436
|
+
/**
|
|
437
|
+
* Provider configuration interface
|
|
438
|
+
*/
|
|
439
|
+
export interface ProviderConfig {
|
|
440
|
+
url: string;
|
|
441
|
+
apiKeyEnvVar: string;
|
|
442
|
+
apiKeyHeader?: string;
|
|
443
|
+
name: string;
|
|
444
|
+
models: readonly string[];
|
|
445
|
+
docUrl?: string;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Parse a model string to extract provider and model ID
|
|
449
|
+
* Examples:
|
|
450
|
+
* "openai/gpt-4o" -> { provider: "openai", modelId: "gpt-4o" }
|
|
451
|
+
* "fireworks/accounts/etc/model" -> { provider: "fireworks", modelId: "accounts/etc/model" }
|
|
452
|
+
* "gpt-4o" -> { provider: null, modelId: "gpt-4o" }
|
|
453
|
+
*/
|
|
454
|
+
export declare function parseModelString(modelString: string): {
|
|
455
|
+
provider: string | null;
|
|
456
|
+
modelId: string;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Type guard to check if a string is a valid OpenAI-compatible model ID
|
|
460
|
+
*/
|
|
461
|
+
export declare function isValidModelId(modelId: string): modelId is ModelRouterModelId;
|
|
462
|
+
//# sourceMappingURL=provider-registry.generated.d.ts.map
|