@qvac/inference 0.18.2 → 0.19.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/NOTICE +69 -36
- package/README.md +1 -5
- package/dist/api/assess-model-fit.d.ts +16 -0
- package/dist/api/assess-model-fit.js +27 -0
- package/dist/api/audio-gen.d.ts +4 -4
- package/dist/api/audio-gen.js +17 -6
- package/dist/api/completion-stream.d.ts +1 -1
- package/dist/api/completion-stream.js +1 -1
- package/dist/api/delete-cache.d.ts +7 -1
- package/dist/api/delete-cache.js +11 -1
- package/dist/api/download-asset.d.ts +1 -1
- package/dist/api/download-asset.js +2 -2
- package/dist/api/finetune.js +1 -1
- package/dist/api/get-loaded-model-info.d.ts +6 -10
- package/dist/api/get-loaded-model-info.js +6 -10
- package/dist/api/heartbeat.d.ts +5 -22
- package/dist/api/heartbeat.js +6 -23
- package/dist/api/index.d.ts +36 -35
- package/dist/api/index.js +35 -35
- package/dist/api/load-model.d.ts +5 -1
- package/dist/api/load-model.js +3 -5
- package/dist/api/logging-stream-registry.js +1 -1
- package/dist/api/resume.d.ts +0 -3
- package/dist/api/resume.js +0 -3
- package/dist/api/subscribe-logs.js +1 -1
- package/dist/api/suspend.d.ts +0 -4
- package/dist/api/suspend.js +0 -4
- package/dist/api/translate.d.ts +3 -1
- package/dist/api/translate.js +16 -8
- package/dist/api/unload-model.js +3 -5
- package/dist/api/video-request.d.ts +207 -0
- package/dist/api/video-request.js +18 -0
- package/dist/api/video.d.ts +22 -2
- package/dist/api/video.js +25 -15
- package/dist/api/vla-helpers.d.ts +1 -2
- package/dist/api/vla-helpers.js +1 -2
- package/dist/api/vla.js +1 -1
- package/dist/api/world-result.d.ts +71 -0
- package/dist/api/world-result.js +293 -0
- package/dist/api/world.d.ts +143 -0
- package/dist/api/world.js +71 -0
- package/dist/config/resolve-config.d.ts +1 -1
- package/dist/config/resolve-config.js +1 -1
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/dispatch.js +15 -28
- package/dist/errors/index.d.ts +35 -31
- package/dist/errors/index.js +66 -56
- package/dist/handlers/assess-model-fit.d.ts +10 -0
- package/dist/handlers/assess-model-fit.js +75 -0
- package/dist/handlers/cancelHandler.js +1 -1
- package/dist/handlers/completion-orchestrate.js +1 -1
- package/dist/handlers/delete-cache.js +3 -0
- package/dist/handlers/download-asset.js +6 -5
- package/dist/handlers/finetune.js +1 -1
- package/dist/handlers/get-loaded-model-info.js +0 -12
- package/dist/handlers/get-model-info.js +1 -1
- package/dist/handlers/get-system-resources.js +8 -0
- package/dist/handlers/load-model/download-manager.d.ts +1 -1
- package/dist/handlers/load-model/download-stats.d.ts +3 -3
- package/dist/handlers/load-model/download-stats.js +5 -5
- package/dist/handlers/load-model/handler.js +6 -8
- package/dist/handlers/load-model/http-verify.d.ts +20 -0
- package/dist/handlers/load-model/http-verify.js +54 -0
- package/dist/handlers/load-model/http.d.ts +12 -2
- package/dist/handlers/load-model/http.js +119 -230
- package/dist/handlers/load-model/hyperdrive.d.ts +1 -1
- package/dist/handlers/load-model/hyperdrive.js +1 -1
- package/dist/handlers/load-model/index.d.ts +2 -2
- package/dist/handlers/load-model/index.js +2 -2
- package/dist/handlers/load-model/registry-companion-set.d.ts +1 -1
- package/dist/handlers/load-model/registry-companion-set.js +1 -1
- package/dist/handlers/load-model/registry-download-utils.d.ts +3 -3
- package/dist/handlers/load-model/registry-download-utils.js +2 -2
- package/dist/handlers/load-model/registry.d.ts +2 -2
- package/dist/handlers/load-model/registry.js +4 -4
- package/dist/handlers/load-model/resolve-session.d.ts +8 -1
- package/dist/handlers/load-model/resolve-session.js +12 -9
- package/dist/handlers/load-model/resolve.d.ts +4 -4
- package/dist/handlers/load-model/resolve.js +18 -16
- package/dist/handlers/load-model/safe-fetch.d.ts +44 -0
- package/dist/handlers/load-model/safe-fetch.js +143 -0
- package/dist/handlers/load-model/types.d.ts +9 -0
- package/dist/handlers/plugin-dispatch.js +1 -4
- package/dist/handlers/plugin-invoke.js +1 -4
- package/dist/handlers/types.d.ts +0 -2
- package/dist/handlers/unload-model.js +1 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/logging/addon.d.ts +1 -1
- package/dist/logging/addon.js +1 -1
- package/dist/logging/index.d.ts +5 -5
- package/dist/logging/index.js +4 -4
- package/dist/logging/logger.d.ts +1 -1
- package/dist/logging/logger.js +2 -2
- package/dist/models/registry/index.d.ts +1 -1
- package/dist/models/registry/index.js +2 -2
- package/dist/models/registry/models.d.ts +250 -0
- package/dist/models/registry/models.js +2071 -1806
- package/dist/models/registry/resource-profiles.d.ts +18 -0
- package/dist/models/registry/resource-profiles.js +4934 -0
- package/dist/plugins/builtin/audiogen-ggml/config.d.ts +14 -0
- package/dist/plugins/builtin/audiogen-ggml/config.js +23 -0
- package/dist/plugins/builtin/audiogen-ggml/ops/audio-gen-stream.js +47 -5
- package/dist/plugins/builtin/audiogen-ggml/plugin.d.ts +134 -4
- package/dist/plugins/builtin/audiogen-ggml/plugin.js +47 -28
- package/dist/plugins/builtin/bci-whispercpp-transcription/plugin.d.ts +1 -1
- package/dist/plugins/builtin/bci-whispercpp-transcription/plugin.js +3 -3
- package/dist/plugins/builtin/ggml-classification/plugin.js +1 -1
- package/dist/plugins/builtin/ggml-ocr/plugin.js +2 -2
- package/dist/plugins/builtin/ggml-vla/plugin.d.ts +1 -1
- package/dist/plugins/builtin/ggml-vla/plugin.js +3 -3
- package/dist/plugins/builtin/index.d.ts +12 -12
- package/dist/plugins/builtin/index.js +12 -12
- package/dist/plugins/builtin/llamacpp-completion/ops/batch-completion-stream.js +2 -2
- package/dist/plugins/builtin/llamacpp-completion/ops/completion-stats.d.ts +1 -0
- package/dist/plugins/builtin/llamacpp-completion/ops/completion-stats.js +3 -0
- package/dist/plugins/builtin/llamacpp-completion/ops/completion-stream.js +37 -26
- package/dist/plugins/builtin/llamacpp-completion/ops/context-overflow.d.ts +12 -11
- package/dist/plugins/builtin/llamacpp-completion/ops/context-overflow.js +133 -41
- package/dist/plugins/builtin/llamacpp-completion/ops/kv-cache-session.d.ts +15 -4
- package/dist/plugins/builtin/llamacpp-completion/ops/kv-cache-session.js +79 -17
- package/dist/plugins/builtin/llamacpp-completion/plugin.d.ts +22 -8
- package/dist/plugins/builtin/llamacpp-completion/plugin.js +10 -13
- package/dist/plugins/builtin/llamacpp-embedding/plugin.d.ts +4 -0
- package/dist/plugins/builtin/llamacpp-embedding/plugin.js +13 -2
- package/dist/plugins/builtin/nmtcpp-translation/plugin.js +2 -2
- package/dist/plugins/builtin/parakeet-transcription/plugin.d.ts +2 -2
- package/dist/plugins/builtin/parakeet-transcription/plugin.js +3 -3
- package/dist/plugins/builtin/sdcpp-generation/ops/upscale.js +1 -1
- package/dist/plugins/builtin/sdcpp-generation/ops/video.js +32 -2
- package/dist/plugins/builtin/sdcpp-generation/ops/world.d.ts +126 -0
- package/dist/plugins/builtin/sdcpp-generation/ops/world.js +820 -0
- package/dist/plugins/builtin/sdcpp-generation/plugin.d.ts +153 -4
- package/dist/plugins/builtin/sdcpp-generation/plugin.js +134 -13
- package/dist/plugins/builtin/tts-ggml/ops/text-to-speech-stream.js +1 -1
- package/dist/plugins/builtin/tts-ggml/ops/text-to-speech.js +1 -1
- package/dist/plugins/builtin/tts-ggml/plugin.js +2 -2
- package/dist/plugins/builtin/whispercpp-transcription/plugin.d.ts +2 -2
- package/dist/plugins/builtin/whispercpp-transcription/plugin.js +3 -3
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +2 -2
- package/dist/plugins/ops/kv-cache-utils.js +1 -1
- package/dist/plugins/ops/load-model.js +1 -1
- package/dist/plugins/ops/transcribe.js +2 -2
- package/dist/plugins/ops/translate.js +4 -12
- package/dist/plugins/ops/unload-model.js +19 -21
- package/dist/plugins/registry.d.ts +1 -0
- package/dist/plugins/registry.js +12 -0
- package/dist/profiling/aggregator.d.ts +1 -1
- package/dist/profiling/aggregator.js +1 -1
- package/dist/profiling/controller.d.ts +1 -1
- package/dist/profiling/controller.js +2 -2
- package/dist/profiling/envelope.d.ts +0 -1
- package/dist/profiling/envelope.js +0 -10
- package/dist/profiling/events.d.ts +2 -3
- package/dist/profiling/events.js +2 -9
- package/dist/profiling/exporters.d.ts +1 -1
- package/dist/profiling/exporters.js +3 -3
- package/dist/profiling/index.d.ts +13 -14
- package/dist/profiling/index.js +12 -13
- package/dist/profiling/operation-metrics.d.ts +1 -1
- package/dist/profiling/operation-metrics.js +35 -2
- package/dist/profiling/operation-wrappers.js +12 -15
- package/dist/profiling/profiler.d.ts +1 -2
- package/dist/profiling/profiler.js +7 -26
- package/dist/profiling/types.d.ts +1 -1
- package/dist/rag/handler.js +1 -1
- package/dist/rag/handlers/close-workspace.js +1 -1
- package/dist/rag/handlers/delete-embeddings.js +1 -1
- package/dist/rag/handlers/delete-workspace.js +2 -6
- package/dist/rag/handlers/ingest.js +1 -1
- package/dist/rag/handlers/list-workspaces.d.ts +1 -1
- package/dist/rag/handlers/list-workspaces.js +1 -1
- package/dist/rag/handlers/reindex.js +1 -1
- package/dist/rag/handlers/save-embeddings.js +1 -1
- package/dist/rag/handlers/search.js +1 -1
- package/dist/rag/index.d.ts +11 -11
- package/dist/rag/index.js +11 -11
- package/dist/rag/rag-workspace-manager.d.ts +4 -2
- package/dist/rag/rag-workspace-manager.js +268 -15
- package/dist/registry.js +8 -58
- package/dist/resources/collector.d.ts +3 -1
- package/dist/resources/collector.js +91 -9
- package/dist/resources/instance.d.ts +1 -1
- package/dist/resources/instance.js +1 -1
- package/dist/resources/model-fit/assess.d.ts +36 -0
- package/dist/resources/model-fit/assess.js +679 -0
- package/dist/resources/model-fit/calibration/darwin-arm64.d.ts +8 -0
- package/dist/resources/model-fit/calibration/darwin-arm64.js +36 -0
- package/dist/resources/model-fit/calibration/darwin-x64.d.ts +8 -0
- package/dist/resources/model-fit/calibration/darwin-x64.js +38 -0
- package/dist/resources/model-fit/calibration/fit.d.ts +73 -0
- package/dist/resources/model-fit/calibration/fit.js +152 -0
- package/dist/resources/model-fit/calibration/index.d.ts +37 -0
- package/dist/resources/model-fit/calibration/index.js +75 -0
- package/dist/resources/model-fit/calibration/linux-arm64.d.ts +8 -0
- package/dist/resources/model-fit/calibration/linux-arm64.js +38 -0
- package/dist/resources/model-fit/calibration/linux-x64-vulkan.d.ts +8 -0
- package/dist/resources/model-fit/calibration/linux-x64-vulkan.js +39 -0
- package/dist/resources/model-fit/calibration/linux-x64.d.ts +8 -0
- package/dist/resources/model-fit/calibration/linux-x64.js +38 -0
- package/dist/resources/model-fit/calibration/win32-x64-vulkan-shared.d.ts +8 -0
- package/dist/resources/model-fit/calibration/win32-x64-vulkan-shared.js +39 -0
- package/dist/resources/model-fit/calibration/win32-x64-vulkan.d.ts +8 -0
- package/dist/resources/model-fit/calibration/win32-x64-vulkan.js +36 -0
- package/dist/resources/model-fit/calibration/win32-x64.d.ts +8 -0
- package/dist/resources/model-fit/calibration/win32-x64.js +38 -0
- package/dist/resources/model-fit/estimators/llm.d.ts +46 -0
- package/dist/resources/model-fit/estimators/llm.js +222 -0
- package/dist/resources/model-fit/estimators/whisper.d.ts +10 -0
- package/dist/resources/model-fit/estimators/whisper.js +77 -0
- package/dist/resources/model-fit/floor.d.ts +31 -0
- package/dist/resources/model-fit/floor.js +65 -0
- package/dist/resources/model-fit/types.d.ts +120 -0
- package/dist/resources/model-fit/types.js +1 -0
- package/dist/resources/native.d.ts +1 -1
- package/dist/resources/native.js +15 -0
- package/dist/resources/normalize.d.ts +1 -1
- package/dist/resources/types.d.ts +14 -0
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/lifecycle.js +5 -7
- package/dist/runtime/model-registry.d.ts +0 -14
- package/dist/runtime/model-registry.js +17 -40
- package/dist/runtime/registry-client.js +1 -1
- package/dist/runtime/request-context.d.ts +3 -3
- package/dist/runtime/request-context.js +13 -1
- package/dist/runtime/request-registry.d.ts +1 -1
- package/dist/runtime/request-registry.js +4 -5
- package/dist/runtime/state.d.ts +1 -1
- package/dist/runtime/state.js +18 -3
- package/dist/schemas/assess-model-fit.d.ts +311 -0
- package/dist/schemas/assess-model-fit.js +182 -0
- package/dist/schemas/audio-gen.d.ts +437 -7
- package/dist/schemas/audio-gen.js +131 -19
- package/dist/schemas/batch-completion-stream.d.ts +5 -2
- package/dist/schemas/batch-completion-stream.js +3 -3
- package/dist/schemas/bci-config.js +73 -27
- package/dist/schemas/bci.d.ts +3 -3
- package/dist/schemas/bci.js +5 -5
- package/dist/schemas/cancel.d.ts +5 -0
- package/dist/schemas/cancel.js +1 -0
- package/dist/schemas/classification.js +13 -6
- package/dist/schemas/common.d.ts +695 -335
- package/dist/schemas/common.js +33 -31
- package/dist/schemas/completion-event.d.ts +5 -2
- package/dist/schemas/completion-event.js +2 -1
- package/dist/schemas/completion-stream.d.ts +3 -5
- package/dist/schemas/completion-stream.js +4 -8
- package/dist/schemas/config.d.ts +640 -18
- package/dist/schemas/config.js +50 -8
- package/dist/schemas/download-asset.d.ts +19 -1
- package/dist/schemas/download-asset.js +20 -4
- package/dist/schemas/engine-addon-map.d.ts +1 -1
- package/dist/schemas/engine-addon-map.js +3 -3
- package/dist/schemas/error.d.ts +2 -2
- package/dist/schemas/error.js +2 -2
- package/dist/schemas/errors.d.ts +2 -6
- package/dist/schemas/errors.js +30 -40
- package/dist/schemas/heartbeat.d.ts +10 -0
- package/dist/schemas/heartbeat.js +8 -0
- package/dist/schemas/index.d.ts +46 -44
- package/dist/schemas/index.js +45 -43
- package/dist/schemas/llamacpp-config.d.ts +32 -10
- package/dist/schemas/llamacpp-config.js +11 -8
- package/dist/schemas/load-model.d.ts +2902 -1857
- package/dist/schemas/load-model.js +52 -52
- package/dist/schemas/mcp-adapter.d.ts +1 -1
- package/dist/schemas/model-config-schemas.d.ts +2354 -0
- package/dist/schemas/model-config-schemas.js +46 -0
- package/dist/schemas/model-info.d.ts +10 -20
- package/dist/schemas/model-info.js +4 -25
- package/dist/schemas/model-ops.d.ts +3 -1
- package/dist/schemas/model-ops.js +7 -2
- package/dist/schemas/model-resource-profile.d.ts +109 -0
- package/dist/schemas/model-resource-profile.js +83 -0
- package/dist/schemas/model-src-utils.d.ts +1 -0
- package/dist/schemas/model-src-utils.js +33 -13
- package/dist/schemas/ocr.js +48 -13
- package/dist/schemas/path-validation.js +8 -2
- package/dist/schemas/plugin.d.ts +23 -10
- package/dist/schemas/plugin.js +11 -0
- package/dist/schemas/profiling.d.ts +138 -43
- package/dist/schemas/profiling.js +1 -22
- package/dist/schemas/rag.js +1 -1
- package/dist/schemas/registry.js +1 -1
- package/dist/schemas/reload-config.d.ts +0 -2
- package/dist/schemas/reload-config.js +2 -3
- package/dist/schemas/sdcpp-config.d.ts +344 -4
- package/dist/schemas/sdcpp-config.js +504 -17
- package/dist/schemas/system-resources.d.ts +138 -0
- package/dist/schemas/system-resources.js +3 -1
- package/dist/schemas/text-to-speech.js +183 -76
- package/dist/schemas/transcription-config.js +253 -85
- package/dist/schemas/transcription.d.ts +3 -3
- package/dist/schemas/translate.d.ts +2 -2
- package/dist/schemas/translate.js +1 -1
- package/dist/schemas/translation-config.js +53 -25
- package/dist/schemas/vla.d.ts +1 -1
- package/dist/selection.d.ts +1 -5
- package/dist/selection.js +2 -6
- package/dist/surface.d.ts +1 -1
- package/dist/utils/addon-responses.d.ts +1 -0
- package/dist/utils/aggregate-events.d.ts +1 -1
- package/dist/utils/aggregate-events.js +2 -2
- package/dist/utils/archive.js +2 -2
- package/dist/utils/audio-input.js +1 -1
- package/dist/utils/cache/auto-history.d.ts +1 -1
- package/dist/utils/cache/auto-history.js +1 -1
- package/dist/utils/cache/paths.js +5 -5
- package/dist/utils/completion-normalizer.js +1 -1
- package/dist/utils/gguf-tensor-extractor.js +1 -1
- package/dist/utils/image-dimensions.d.ts +26 -0
- package/dist/utils/image-dimensions.js +46 -0
- package/dist/utils/index.d.ts +13 -10
- package/dist/utils/index.js +13 -10
- package/dist/utils/mcp-adapter.d.ts +1 -1
- package/dist/utils/mcp-adapter.js +1 -1
- package/dist/utils/path-sanitize.d.ts +7 -0
- package/dist/utils/path-sanitize.js +36 -0
- package/dist/utils/path-security.d.ts +0 -7
- package/dist/utils/path-security.js +1 -36
- package/dist/utils/shard-utils.js +3 -3
- package/dist/utils/tool-integration.js +1 -1
- package/dist/utils/tools/dialect.js +1 -1
- package/dist/utils/tools/index.d.ts +2 -2
- package/dist/utils/tools/index.js +2 -2
- package/dist/utils/tools/parser.js +8 -8
- package/dist/utils/tools/parsers/dsml.d.ts +1 -1
- package/dist/utils/tools/parsers/dsml.js +1 -1
- package/dist/utils/tools/parsers/gemma4native.d.ts +1 -1
- package/dist/utils/tools/parsers/gemma4native.js +1 -1
- package/dist/utils/tools/parsers/harmony.d.ts +1 -1
- package/dist/utils/tools/parsers/harmony.js +1 -1
- package/dist/utils/tools/parsers/hermes.d.ts +1 -1
- package/dist/utils/tools/parsers/hermes.js +1 -1
- package/dist/utils/tools/parsers/json.d.ts +1 -1
- package/dist/utils/tools/parsers/json.js +1 -1
- package/dist/utils/tools/parsers/pythonic.d.ts +1 -1
- package/dist/utils/tools/parsers/pythonic.js +1 -1
- package/dist/utils/tools/parsers/qwen35.d.ts +1 -1
- package/dist/utils/tools/parsers/qwen35.js +3 -3
- package/dist/utils/url-security.d.ts +17 -0
- package/dist/utils/url-security.js +75 -0
- package/package.json +31 -26
- package/dist/api/provide.d.ts +0 -23
- package/dist/api/provide.js +0 -32
- package/dist/api/stop-provider.d.ts +0 -20
- package/dist/api/stop-provider.js +0 -30
- package/dist/p2p/cancel-delegated.d.ts +0 -3
- package/dist/p2p/cancel-delegated.js +0 -64
- package/dist/p2p/completion-stream-delegated.d.ts +0 -4
- package/dist/p2p/completion-stream-delegated.js +0 -51
- package/dist/p2p/delegate-client.d.ts +0 -9
- package/dist/p2p/delegate-client.js +0 -219
- package/dist/p2p/delegate-connect-diagnostics.d.ts +0 -8
- package/dist/p2p/delegate-connect-diagnostics.js +0 -38
- package/dist/p2p/delegate-transport.d.ts +0 -18
- package/dist/p2p/delegate-transport.js +0 -237
- package/dist/p2p/error-handlers.d.ts +0 -4
- package/dist/p2p/error-handlers.js +0 -31
- package/dist/p2p/handle-request.d.ts +0 -2
- package/dist/p2p/handle-request.js +0 -171
- package/dist/p2p/handler-utils.d.ts +0 -19
- package/dist/p2p/handler-utils.js +0 -180
- package/dist/p2p/heartbeat-delegated.d.ts +0 -3
- package/dist/p2p/heartbeat-delegated.js +0 -32
- package/dist/p2p/load-model-delegated.d.ts +0 -6
- package/dist/p2p/load-model-delegated.js +0 -132
- package/dist/p2p/progress-throttle.d.ts +0 -7
- package/dist/p2p/progress-throttle.js +0 -47
- package/dist/p2p/provideHandler/connection.d.ts +0 -2
- package/dist/p2p/provideHandler/connection.js +0 -38
- package/dist/p2p/provideHandler/handler.d.ts +0 -2
- package/dist/p2p/provideHandler/handler.js +0 -66
- package/dist/p2p/provideHandler/proxy.d.ts +0 -2
- package/dist/p2p/provideHandler/proxy.js +0 -24
- package/dist/p2p/provideHandler.d.ts +0 -1
- package/dist/p2p/provideHandler.js +0 -2
- package/dist/p2p/rpc-utils.d.ts +0 -4
- package/dist/p2p/rpc-utils.js +0 -8
- package/dist/p2p/stopProvideHandler.d.ts +0 -2
- package/dist/p2p/stopProvideHandler.js +0 -29
- package/dist/p2p/swarm.d.ts +0 -9
- package/dist/p2p/swarm.js +0 -103
- package/dist/p2p/transport-selector.d.ts +0 -2
- package/dist/p2p/transport-selector.js +0 -18
- package/dist/p2p/unload-model-delegated.d.ts +0 -2
- package/dist/p2p/unload-model-delegated.js +0 -31
- package/dist/profiling/delegation-profiler.d.ts +0 -31
- package/dist/profiling/delegation-profiler.js +0 -155
- package/dist/schemas/delegate.d.ts +0 -29
- package/dist/schemas/delegate.js +0 -40
- package/dist/schemas/provide.d.ts +0 -50
- package/dist/schemas/provide.js +0 -32
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { type InferenceBackendDiagnostics } from './system-resources.js';
|
|
3
|
+
export declare const AUDIOGEN_ENGINES: readonly ["acestep", "minimax"];
|
|
4
|
+
export declare const audioGenEngineSchema: z.ZodEnum<{
|
|
5
|
+
acestep: "acestep";
|
|
6
|
+
minimax: "minimax";
|
|
7
|
+
}>;
|
|
2
8
|
/** Sample rate the ACE-Step engine expects for reference and source audio. */
|
|
3
9
|
export declare const AUDIOGEN_INPUT_SAMPLE_RATE = 48000;
|
|
4
10
|
/** Channel count (interleaved stereo) the ACE-Step engine expects for input audio. */
|
|
@@ -21,21 +27,47 @@ export declare const audioGenTaskTypeSchema: z.ZodEnum<{
|
|
|
21
27
|
text2music: "text2music";
|
|
22
28
|
"cover-nofsq": "cover-nofsq";
|
|
23
29
|
}>;
|
|
24
|
-
|
|
25
|
-
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
declare const acestepAudioGenRuntimeConfigSchema: z.ZodObject<{
|
|
26
31
|
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
27
32
|
shift: z.ZodOptional<z.ZodNumber>;
|
|
28
33
|
nGpuLayers: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
29
35
|
threads: z.ZodOptional<z.ZodNumber>;
|
|
30
36
|
backendsDir: z.ZodOptional<z.ZodString>;
|
|
37
|
+
engine: z.ZodOptional<z.ZodLiteral<"acestep">>;
|
|
31
38
|
}, z.core.$strict>;
|
|
32
|
-
|
|
39
|
+
declare const minimaxAudioGenRuntimeConfigSchema: z.ZodObject<{
|
|
40
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
threads: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
backendsDir: z.ZodOptional<z.ZodString>;
|
|
45
|
+
engine: z.ZodLiteral<"minimax">;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
export declare const audioGenRuntimeConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
shift: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
nGpuLayers: z.ZodOptional<z.ZodNumber>;
|
|
33
51
|
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
threads: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
backendsDir: z.ZodOptional<z.ZodString>;
|
|
54
|
+
engine: z.ZodOptional<z.ZodLiteral<"acestep">>;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
threads: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
backendsDir: z.ZodOptional<z.ZodString>;
|
|
61
|
+
engine: z.ZodLiteral<"minimax">;
|
|
62
|
+
}, z.core.$strict>], "engine">;
|
|
63
|
+
declare const acestepAudioGenConfigSchema: z.ZodObject<{
|
|
34
64
|
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
35
65
|
shift: z.ZodOptional<z.ZodNumber>;
|
|
36
66
|
nGpuLayers: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
37
68
|
threads: z.ZodOptional<z.ZodNumber>;
|
|
38
69
|
backendsDir: z.ZodOptional<z.ZodString>;
|
|
70
|
+
engine: z.ZodOptional<z.ZodLiteral<"acestep">>;
|
|
39
71
|
textEncModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
40
72
|
src: z.ZodString;
|
|
41
73
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -193,6 +225,342 @@ export declare const audioGenConfigSchema: z.ZodObject<{
|
|
|
193
225
|
}>, z.ZodLiteral<"vad">]>>;
|
|
194
226
|
}, z.core.$strip>]>;
|
|
195
227
|
}, z.core.$strict>;
|
|
228
|
+
declare const minimaxAudioGenConfigSchema: z.ZodObject<{
|
|
229
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
threads: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
backendsDir: z.ZodOptional<z.ZodString>;
|
|
234
|
+
engine: z.ZodLiteral<"minimax">;
|
|
235
|
+
lmModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
236
|
+
src: z.ZodString;
|
|
237
|
+
name: z.ZodOptional<z.ZodString>;
|
|
238
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
239
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
240
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
241
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
242
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
244
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
246
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
247
|
+
embeddings: "embeddings";
|
|
248
|
+
diffusion: "diffusion";
|
|
249
|
+
audiogen: "audiogen";
|
|
250
|
+
tts: "tts";
|
|
251
|
+
ocr: "ocr";
|
|
252
|
+
vla: "vla";
|
|
253
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
254
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
255
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
256
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
257
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
258
|
+
"onnx-tts": "onnx-tts";
|
|
259
|
+
"tts-ggml": "tts-ggml";
|
|
260
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
261
|
+
"ggml-ocr": "ggml-ocr";
|
|
262
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
263
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
264
|
+
"ggml-vla": "ggml-vla";
|
|
265
|
+
"ggml-classification": "ggml-classification";
|
|
266
|
+
llm: "llm";
|
|
267
|
+
whisper: "whisper";
|
|
268
|
+
bci: "bci";
|
|
269
|
+
nmt: "nmt";
|
|
270
|
+
parakeet: "parakeet";
|
|
271
|
+
classification: "classification";
|
|
272
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
273
|
+
}, z.core.$strip>]>;
|
|
274
|
+
synthModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
275
|
+
src: z.ZodString;
|
|
276
|
+
name: z.ZodOptional<z.ZodString>;
|
|
277
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
278
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
279
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
280
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
281
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
283
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
285
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
286
|
+
embeddings: "embeddings";
|
|
287
|
+
diffusion: "diffusion";
|
|
288
|
+
audiogen: "audiogen";
|
|
289
|
+
tts: "tts";
|
|
290
|
+
ocr: "ocr";
|
|
291
|
+
vla: "vla";
|
|
292
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
293
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
294
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
295
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
296
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
297
|
+
"onnx-tts": "onnx-tts";
|
|
298
|
+
"tts-ggml": "tts-ggml";
|
|
299
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
300
|
+
"ggml-ocr": "ggml-ocr";
|
|
301
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
302
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
303
|
+
"ggml-vla": "ggml-vla";
|
|
304
|
+
"ggml-classification": "ggml-classification";
|
|
305
|
+
llm: "llm";
|
|
306
|
+
whisper: "whisper";
|
|
307
|
+
bci: "bci";
|
|
308
|
+
nmt: "nmt";
|
|
309
|
+
parakeet: "parakeet";
|
|
310
|
+
classification: "classification";
|
|
311
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
312
|
+
}, z.core.$strip>]>;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
export declare const audioGenConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
shift: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
nGpuLayers: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
threads: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
backendsDir: z.ZodOptional<z.ZodString>;
|
|
321
|
+
engine: z.ZodOptional<z.ZodLiteral<"acestep">>;
|
|
322
|
+
textEncModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
323
|
+
src: z.ZodString;
|
|
324
|
+
name: z.ZodOptional<z.ZodString>;
|
|
325
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
326
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
327
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
328
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
329
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
331
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
333
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
334
|
+
embeddings: "embeddings";
|
|
335
|
+
diffusion: "diffusion";
|
|
336
|
+
audiogen: "audiogen";
|
|
337
|
+
tts: "tts";
|
|
338
|
+
ocr: "ocr";
|
|
339
|
+
vla: "vla";
|
|
340
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
341
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
342
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
343
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
344
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
345
|
+
"onnx-tts": "onnx-tts";
|
|
346
|
+
"tts-ggml": "tts-ggml";
|
|
347
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
348
|
+
"ggml-ocr": "ggml-ocr";
|
|
349
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
350
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
351
|
+
"ggml-vla": "ggml-vla";
|
|
352
|
+
"ggml-classification": "ggml-classification";
|
|
353
|
+
llm: "llm";
|
|
354
|
+
whisper: "whisper";
|
|
355
|
+
bci: "bci";
|
|
356
|
+
nmt: "nmt";
|
|
357
|
+
parakeet: "parakeet";
|
|
358
|
+
classification: "classification";
|
|
359
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
360
|
+
}, z.core.$strip>]>;
|
|
361
|
+
lmModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
362
|
+
src: z.ZodString;
|
|
363
|
+
name: z.ZodOptional<z.ZodString>;
|
|
364
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
365
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
366
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
367
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
368
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
370
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
371
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
372
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
373
|
+
embeddings: "embeddings";
|
|
374
|
+
diffusion: "diffusion";
|
|
375
|
+
audiogen: "audiogen";
|
|
376
|
+
tts: "tts";
|
|
377
|
+
ocr: "ocr";
|
|
378
|
+
vla: "vla";
|
|
379
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
380
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
381
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
382
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
383
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
384
|
+
"onnx-tts": "onnx-tts";
|
|
385
|
+
"tts-ggml": "tts-ggml";
|
|
386
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
387
|
+
"ggml-ocr": "ggml-ocr";
|
|
388
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
389
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
390
|
+
"ggml-vla": "ggml-vla";
|
|
391
|
+
"ggml-classification": "ggml-classification";
|
|
392
|
+
llm: "llm";
|
|
393
|
+
whisper: "whisper";
|
|
394
|
+
bci: "bci";
|
|
395
|
+
nmt: "nmt";
|
|
396
|
+
parakeet: "parakeet";
|
|
397
|
+
classification: "classification";
|
|
398
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
399
|
+
}, z.core.$strip>]>;
|
|
400
|
+
ditModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
401
|
+
src: z.ZodString;
|
|
402
|
+
name: z.ZodOptional<z.ZodString>;
|
|
403
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
404
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
405
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
406
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
407
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
409
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
411
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
412
|
+
embeddings: "embeddings";
|
|
413
|
+
diffusion: "diffusion";
|
|
414
|
+
audiogen: "audiogen";
|
|
415
|
+
tts: "tts";
|
|
416
|
+
ocr: "ocr";
|
|
417
|
+
vla: "vla";
|
|
418
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
419
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
420
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
421
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
422
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
423
|
+
"onnx-tts": "onnx-tts";
|
|
424
|
+
"tts-ggml": "tts-ggml";
|
|
425
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
426
|
+
"ggml-ocr": "ggml-ocr";
|
|
427
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
428
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
429
|
+
"ggml-vla": "ggml-vla";
|
|
430
|
+
"ggml-classification": "ggml-classification";
|
|
431
|
+
llm: "llm";
|
|
432
|
+
whisper: "whisper";
|
|
433
|
+
bci: "bci";
|
|
434
|
+
nmt: "nmt";
|
|
435
|
+
parakeet: "parakeet";
|
|
436
|
+
classification: "classification";
|
|
437
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
438
|
+
}, z.core.$strip>]>;
|
|
439
|
+
vaeModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
440
|
+
src: z.ZodString;
|
|
441
|
+
name: z.ZodOptional<z.ZodString>;
|
|
442
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
443
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
444
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
445
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
446
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
448
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
449
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
450
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
451
|
+
embeddings: "embeddings";
|
|
452
|
+
diffusion: "diffusion";
|
|
453
|
+
audiogen: "audiogen";
|
|
454
|
+
tts: "tts";
|
|
455
|
+
ocr: "ocr";
|
|
456
|
+
vla: "vla";
|
|
457
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
458
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
459
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
460
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
461
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
462
|
+
"onnx-tts": "onnx-tts";
|
|
463
|
+
"tts-ggml": "tts-ggml";
|
|
464
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
465
|
+
"ggml-ocr": "ggml-ocr";
|
|
466
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
467
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
468
|
+
"ggml-vla": "ggml-vla";
|
|
469
|
+
"ggml-classification": "ggml-classification";
|
|
470
|
+
llm: "llm";
|
|
471
|
+
whisper: "whisper";
|
|
472
|
+
bci: "bci";
|
|
473
|
+
nmt: "nmt";
|
|
474
|
+
parakeet: "parakeet";
|
|
475
|
+
classification: "classification";
|
|
476
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
477
|
+
}, z.core.$strip>]>;
|
|
478
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
479
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
threads: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
backendsDir: z.ZodOptional<z.ZodString>;
|
|
484
|
+
engine: z.ZodLiteral<"minimax">;
|
|
485
|
+
lmModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
486
|
+
src: z.ZodString;
|
|
487
|
+
name: z.ZodOptional<z.ZodString>;
|
|
488
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
489
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
490
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
491
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
492
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
494
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
496
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
497
|
+
embeddings: "embeddings";
|
|
498
|
+
diffusion: "diffusion";
|
|
499
|
+
audiogen: "audiogen";
|
|
500
|
+
tts: "tts";
|
|
501
|
+
ocr: "ocr";
|
|
502
|
+
vla: "vla";
|
|
503
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
504
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
505
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
506
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
507
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
508
|
+
"onnx-tts": "onnx-tts";
|
|
509
|
+
"tts-ggml": "tts-ggml";
|
|
510
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
511
|
+
"ggml-ocr": "ggml-ocr";
|
|
512
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
513
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
514
|
+
"ggml-vla": "ggml-vla";
|
|
515
|
+
"ggml-classification": "ggml-classification";
|
|
516
|
+
llm: "llm";
|
|
517
|
+
whisper: "whisper";
|
|
518
|
+
bci: "bci";
|
|
519
|
+
nmt: "nmt";
|
|
520
|
+
parakeet: "parakeet";
|
|
521
|
+
classification: "classification";
|
|
522
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
523
|
+
}, z.core.$strip>]>;
|
|
524
|
+
synthModelSrc: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
525
|
+
src: z.ZodString;
|
|
526
|
+
name: z.ZodOptional<z.ZodString>;
|
|
527
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
528
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
529
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
530
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
531
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
532
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
533
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
535
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
536
|
+
embeddings: "embeddings";
|
|
537
|
+
diffusion: "diffusion";
|
|
538
|
+
audiogen: "audiogen";
|
|
539
|
+
tts: "tts";
|
|
540
|
+
ocr: "ocr";
|
|
541
|
+
vla: "vla";
|
|
542
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
543
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
544
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
545
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
546
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
547
|
+
"onnx-tts": "onnx-tts";
|
|
548
|
+
"tts-ggml": "tts-ggml";
|
|
549
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
550
|
+
"ggml-ocr": "ggml-ocr";
|
|
551
|
+
"sdcpp-generation": "sdcpp-generation";
|
|
552
|
+
"audiogen-ggml": "audiogen-ggml";
|
|
553
|
+
"ggml-vla": "ggml-vla";
|
|
554
|
+
"ggml-classification": "ggml-classification";
|
|
555
|
+
llm: "llm";
|
|
556
|
+
whisper: "whisper";
|
|
557
|
+
bci: "bci";
|
|
558
|
+
nmt: "nmt";
|
|
559
|
+
parakeet: "parakeet";
|
|
560
|
+
classification: "classification";
|
|
561
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
562
|
+
}, z.core.$strip>]>;
|
|
563
|
+
}, z.core.$strict>], "engine">;
|
|
196
564
|
/**
|
|
197
565
|
* Wire form of a reference/source audio input. `filePath` inputs are decoded
|
|
198
566
|
* server-side (any format the SDK's audio decoder supports, plus raw PCM);
|
|
@@ -209,7 +577,7 @@ export declare const audioGenAudioInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
209
577
|
* Client form of a reference/source audio input: a file path, or raw
|
|
210
578
|
* interleaved stereo 48 kHz Float32 LE PCM bytes. Normalized to the wire form.
|
|
211
579
|
*/
|
|
212
|
-
export declare const audioGenClientAudioInputSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.
|
|
580
|
+
export declare const audioGenClientAudioInputSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>, z.ZodTransform<{
|
|
213
581
|
type: "base64";
|
|
214
582
|
value: string;
|
|
215
583
|
} | {
|
|
@@ -217,14 +585,14 @@ export declare const audioGenClientAudioInputSchema: z.ZodPipe<z.ZodUnion<readon
|
|
|
217
585
|
value: string;
|
|
218
586
|
}, string | Uint8Array<ArrayBuffer>>>;
|
|
219
587
|
export declare const audioGenClientParamsSchema: z.ZodObject<{
|
|
220
|
-
referenceAudio: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.
|
|
588
|
+
referenceAudio: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>, z.ZodTransform<{
|
|
221
589
|
type: "base64";
|
|
222
590
|
value: string;
|
|
223
591
|
} | {
|
|
224
592
|
type: "filePath";
|
|
225
593
|
value: string;
|
|
226
594
|
}, string | Uint8Array<ArrayBuffer>>>>;
|
|
227
|
-
sourceAudio: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.
|
|
595
|
+
sourceAudio: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>, z.ZodTransform<{
|
|
228
596
|
type: "base64";
|
|
229
597
|
value: string;
|
|
230
598
|
} | {
|
|
@@ -240,6 +608,9 @@ export declare const audioGenClientParamsSchema: z.ZodObject<{
|
|
|
240
608
|
keyscale: z.ZodOptional<z.ZodString>;
|
|
241
609
|
timesignature: z.ZodOptional<z.ZodString>;
|
|
242
610
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
maxFrames: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
613
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
243
614
|
lmTemperature: z.ZodOptional<z.ZodNumber>;
|
|
244
615
|
lmTopP: z.ZodOptional<z.ZodNumber>;
|
|
245
616
|
lmTopK: z.ZodOptional<z.ZodNumber>;
|
|
@@ -281,6 +652,9 @@ export declare const audioGenStreamRequestSchema: z.ZodObject<{
|
|
|
281
652
|
keyscale: z.ZodOptional<z.ZodString>;
|
|
282
653
|
timesignature: z.ZodOptional<z.ZodString>;
|
|
283
654
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
655
|
+
maxFrames: z.ZodOptional<z.ZodNumber>;
|
|
656
|
+
inferenceSteps: z.ZodOptional<z.ZodNumber>;
|
|
657
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
284
658
|
lmTemperature: z.ZodOptional<z.ZodNumber>;
|
|
285
659
|
lmTopP: z.ZodOptional<z.ZodNumber>;
|
|
286
660
|
lmTopK: z.ZodOptional<z.ZodNumber>;
|
|
@@ -296,6 +670,15 @@ export declare const audioGenStreamRequestSchema: z.ZodObject<{
|
|
|
296
670
|
audioCoverStrength: z.ZodOptional<z.ZodNumber>;
|
|
297
671
|
coverNoiseStrength: z.ZodOptional<z.ZodNumber>;
|
|
298
672
|
}, z.core.$strict>;
|
|
673
|
+
export type AudioGenProgress = {
|
|
674
|
+
stage: string;
|
|
675
|
+
step: number;
|
|
676
|
+
/**
|
|
677
|
+
* Total number of steps when greater than zero. Values less than or equal to zero mean
|
|
678
|
+
* indeterminate progress and must not be rendered as a `step / total` determinate progress value.
|
|
679
|
+
*/
|
|
680
|
+
total: number;
|
|
681
|
+
};
|
|
299
682
|
export declare const audioGenProgressSchema: z.ZodObject<{
|
|
300
683
|
stage: z.ZodString;
|
|
301
684
|
step: z.ZodNumber;
|
|
@@ -331,14 +714,59 @@ export declare const audioGenStreamResponseSchema: z.ZodObject<{
|
|
|
331
714
|
backendDevice: z.ZodOptional<z.ZodNumber>;
|
|
332
715
|
backendId: z.ZodOptional<z.ZodNumber>;
|
|
333
716
|
}, z.core.$strip>>;
|
|
717
|
+
diagnostics: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
selectedBackend: z.ZodString;
|
|
719
|
+
selectedDevice: z.ZodEnum<{
|
|
720
|
+
gpu: "gpu";
|
|
721
|
+
cpu: "cpu";
|
|
722
|
+
}>;
|
|
723
|
+
graphicsApi: z.ZodOptional<z.ZodEnum<{
|
|
724
|
+
vulkan: "vulkan";
|
|
725
|
+
metal: "metal";
|
|
726
|
+
opencl: "opencl";
|
|
727
|
+
cuda: "cuda";
|
|
728
|
+
opengl: "opengl";
|
|
729
|
+
webgpu: "webgpu";
|
|
730
|
+
direct3d11: "direct3d11";
|
|
731
|
+
direct3d12: "direct3d12";
|
|
732
|
+
levelZero: "levelZero";
|
|
733
|
+
rocm: "rocm";
|
|
734
|
+
}>>;
|
|
735
|
+
driver: z.ZodOptional<z.ZodObject<{
|
|
736
|
+
name: z.ZodString;
|
|
737
|
+
version: z.ZodOptional<z.ZodString>;
|
|
738
|
+
}, z.core.$strip>>;
|
|
739
|
+
gpuId: z.ZodOptional<z.ZodString>;
|
|
740
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
741
|
+
requestedBackend: z.ZodOptional<z.ZodString>;
|
|
742
|
+
requestedDevice: z.ZodOptional<z.ZodEnum<{
|
|
743
|
+
gpu: "gpu";
|
|
744
|
+
cpu: "cpu";
|
|
745
|
+
}>>;
|
|
746
|
+
reason: z.ZodString;
|
|
747
|
+
}, z.core.$strip>>;
|
|
748
|
+
probe: z.ZodOptional<z.ZodObject<{
|
|
749
|
+
status: z.ZodEnum<{
|
|
750
|
+
unknown: "unknown";
|
|
751
|
+
compatible: "compatible";
|
|
752
|
+
incompatible: "incompatible";
|
|
753
|
+
}>;
|
|
754
|
+
backend: z.ZodString;
|
|
755
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
756
|
+
}, z.core.$strip>>;
|
|
757
|
+
}, z.core.$strip>>;
|
|
334
758
|
}, z.core.$strict>;
|
|
335
759
|
export type AudioGenTaskType = z.infer<typeof audioGenTaskTypeSchema>;
|
|
760
|
+
export type AudioGenEngine = z.infer<typeof audioGenEngineSchema>;
|
|
336
761
|
export type AudioGenAudioInput = z.infer<typeof audioGenAudioInputSchema>;
|
|
762
|
+
export type AcestepAudioGenRuntimeConfig = z.infer<typeof acestepAudioGenRuntimeConfigSchema>;
|
|
763
|
+
export type MinimaxAudioGenRuntimeConfig = z.infer<typeof minimaxAudioGenRuntimeConfigSchema>;
|
|
337
764
|
export type AudioGenRuntimeConfig = z.infer<typeof audioGenRuntimeConfigSchema>;
|
|
765
|
+
export type AcestepAudioGenConfig = z.infer<typeof acestepAudioGenConfigSchema>;
|
|
766
|
+
export type MinimaxAudioGenConfig = z.infer<typeof minimaxAudioGenConfigSchema>;
|
|
338
767
|
export type AudioGenConfig = z.infer<typeof audioGenConfigSchema>;
|
|
339
768
|
export type AudioGenClientParams = z.input<typeof audioGenClientParamsSchema>;
|
|
340
769
|
export type AudioGenStreamRequest = z.infer<typeof audioGenStreamRequestSchema>;
|
|
341
|
-
export type AudioGenProgress = z.infer<typeof audioGenProgressSchema>;
|
|
342
770
|
export type AudioGenStats = z.infer<typeof audioGenStatsSchema>;
|
|
343
771
|
export type AudioGenStreamResponse = z.infer<typeof audioGenStreamResponseSchema>;
|
|
344
772
|
export interface AudioGenAudio {
|
|
@@ -352,4 +780,6 @@ export interface AudioGenResult {
|
|
|
352
780
|
progressStream: AsyncGenerator<AudioGenProgress>;
|
|
353
781
|
audio: Promise<AudioGenAudio>;
|
|
354
782
|
stats: Promise<AudioGenStats | undefined>;
|
|
783
|
+
diagnostics: Promise<InferenceBackendDiagnostics | undefined>;
|
|
355
784
|
}
|
|
785
|
+
export {};
|