@qvac/sdk 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +15 -68
- package/dist/client/api/cancel.d.ts +1 -1
- package/dist/client/api/cancel.js +1 -1
- package/dist/client/api/completion-stream.d.ts +51 -12
- package/dist/client/api/completion-stream.js +129 -56
- package/dist/client/api/delete-cache.d.ts +1 -0
- package/dist/client/api/delete-cache.js +1 -0
- package/dist/client/api/diffusion.d.ts +17 -2
- package/dist/client/api/diffusion.js +21 -4
- package/dist/client/api/embed.d.ts +4 -0
- package/dist/client/api/finetune.d.ts +21 -0
- package/dist/client/api/get-loaded-model-info.d.ts +25 -0
- package/dist/client/api/get-loaded-model-info.js +36 -0
- package/dist/client/api/get-model-info.d.ts +9 -1
- package/dist/client/api/get-model-info.js +8 -0
- package/dist/client/api/heartbeat.d.ts +2 -2
- package/dist/client/api/heartbeat.js +2 -2
- package/dist/client/api/index.d.ts +3 -1
- package/dist/client/api/index.js +3 -1
- package/dist/client/api/invoke-plugin.d.ts +16 -0
- package/dist/client/api/invoke-plugin.js +16 -0
- package/dist/client/api/load-model.d.ts +36 -3
- package/dist/client/api/load-model.js +31 -10
- package/dist/client/api/provide.d.ts +11 -5
- package/dist/client/api/provide.js +11 -6
- package/dist/client/api/rag.d.ts +9 -0
- package/dist/client/api/rag.js +9 -0
- package/dist/client/api/registry.d.ts +26 -0
- package/dist/client/api/registry.js +26 -0
- package/dist/client/api/resume.d.ts +20 -4
- package/dist/client/api/resume.js +20 -4
- package/dist/client/api/state.d.ts +23 -0
- package/dist/client/api/state.js +29 -0
- package/dist/client/api/stop-provider.d.ts +11 -5
- package/dist/client/api/stop-provider.js +11 -5
- package/dist/client/api/suspend.d.ts +21 -3
- package/dist/client/api/suspend.js +21 -3
- package/dist/client/api/text-to-speech.d.ts +64 -6
- package/dist/client/api/text-to-speech.js +423 -47
- package/dist/client/api/transcribe.d.ts +29 -4
- package/dist/client/api/transcribe.js +86 -28
- package/dist/client/api/translate.d.ts +1 -0
- package/dist/client/api/translate.js +1 -0
- package/dist/client/rpc/bare-client.js +22 -1
- package/dist/client/rpc/expo-rpc-client.d.ts +1 -1
- package/dist/client/rpc/expo-rpc-client.js +96 -4
- package/dist/client/rpc/node-rpc-client.js +36 -0
- package/dist/examples/audio/mic-input.d.ts +9 -0
- package/dist/examples/audio/mic-input.js +111 -0
- package/dist/examples/completion-events.d.ts +18 -0
- package/dist/examples/completion-events.js +79 -0
- package/dist/examples/delegated-inference/composite.js +12 -18
- package/dist/examples/delegated-inference/consumer-profiled.js +4 -11
- package/dist/examples/delegated-inference/consumer.js +8 -13
- package/dist/examples/delegated-inference/provider.js +11 -16
- package/dist/examples/diffusion-flux2-klein-img2img.d.ts +2 -0
- package/dist/examples/diffusion-flux2-klein-img2img.js +60 -0
- package/dist/examples/diffusion-flux2-klein.js +1 -0
- package/dist/examples/diffusion-img2img.d.ts +2 -0
- package/dist/examples/diffusion-img2img.js +49 -0
- package/dist/examples/diffusion-txt2img.js +2 -1
- package/dist/examples/kv-cache-example.js +11 -12
- package/dist/examples/llamacpp-cache.d.ts +2 -0
- package/dist/examples/llamacpp-cache.js +107 -0
- package/dist/examples/llamacpp-dynamic-tools.d.ts +2 -0
- package/dist/examples/llamacpp-dynamic-tools.js +144 -0
- package/dist/examples/llamacpp-native-tools.js +2 -8
- package/dist/examples/llamacpp-structured-output.d.ts +2 -0
- package/dist/examples/llamacpp-structured-output.js +106 -0
- package/dist/examples/llamacpp-tools-pythonic.d.ts +2 -0
- package/dist/examples/llamacpp-tools-pythonic.js +69 -0
- package/dist/examples/plugins.js +4 -4
- package/dist/examples/suspend-resume.js +21 -4
- package/dist/examples/transcription/parakeet-microphone-record.js +6 -33
- package/dist/examples/transcription/whispercpp-filesystem-streaming.js +7 -5
- package/dist/examples/transcription/whispercpp-filesystem.js +12 -3
- package/dist/examples/transcription/whispercpp-microphone-record.js +6 -29
- package/dist/examples/translation/translation-stream.js +5 -5
- package/dist/examples/tts/llm-to-tts-streaming.d.ts +16 -0
- package/dist/examples/tts/llm-to-tts-streaming.js +143 -0
- package/dist/examples/tts/supertonic-multilingual.js +3 -3
- package/dist/examples/tts/supertonic.js +3 -3
- package/dist/examples/tts/utils.d.ts +11 -1
- package/dist/examples/tts/utils.js +70 -17
- package/dist/examples/voice-assistant/voice-assistant.d.ts +2 -0
- package/dist/examples/voice-assistant/voice-assistant.js +207 -0
- package/dist/expo/plugins/withMobileBundle.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/logging/logger.d.ts +11 -0
- package/dist/logging/logger.js +11 -0
- package/dist/logging/types.d.ts +18 -0
- package/dist/models/registry/models.d.ts +6620 -6185
- package/dist/models/registry/models.js +6296 -5318
- package/dist/models/update-models/codegen.js +84 -23
- package/dist/models/update-models/companions.d.ts +18 -0
- package/dist/models/update-models/companions.js +175 -0
- package/dist/models/update-models/naming.js +0 -25
- package/dist/models/update-models/registry.js +4 -2
- package/dist/models/update-models/types.d.ts +37 -9
- package/dist/profiling/index.d.ts +49 -0
- package/dist/profiling/index.js +49 -0
- package/dist/schemas/cancel.d.ts +6 -2
- package/dist/schemas/cancel.js +14 -7
- package/dist/schemas/common.d.ts +361 -279
- package/dist/schemas/common.js +26 -5
- package/dist/schemas/completion-event.d.ts +225 -0
- package/dist/schemas/completion-event.js +79 -0
- package/dist/schemas/completion-stream.d.ts +122 -31
- package/dist/schemas/completion-stream.js +137 -36
- package/dist/schemas/delegate.d.ts +0 -2
- package/dist/schemas/delegate.js +25 -6
- package/dist/schemas/download-asset.d.ts +5 -5
- package/dist/schemas/embed.js +21 -9
- package/dist/schemas/engine-addon-map.d.ts +11 -1
- package/dist/schemas/engine-addon-map.js +2 -2
- package/dist/schemas/finetune.d.ts +16 -16
- package/dist/schemas/finetune.js +8 -8
- package/dist/schemas/get-loaded-model-info.d.ts +52 -0
- package/dist/schemas/get-loaded-model-info.js +44 -0
- package/dist/schemas/get-model-info.d.ts +2 -2
- package/dist/schemas/get-model-info.js +103 -32
- package/dist/schemas/heartbeat.d.ts +0 -1
- package/dist/schemas/index.d.ts +4 -1
- package/dist/schemas/index.js +4 -1
- package/dist/schemas/llamacpp-config.d.ts +14 -4
- package/dist/schemas/llamacpp-config.js +5 -0
- package/dist/schemas/load-model.d.ts +3233 -1260
- package/dist/schemas/load-model.js +23 -16
- package/dist/schemas/model-src-utils.d.ts +7 -6
- package/dist/schemas/model-src-utils.js +27 -1
- package/dist/schemas/model-types.d.ts +4 -4
- package/dist/schemas/ocr.d.ts +1 -1
- package/dist/schemas/plugin.d.ts +27 -3
- package/dist/schemas/plugin.js +27 -2
- package/dist/schemas/profiling.js +11 -3
- package/dist/schemas/provide.d.ts +1 -3
- package/dist/schemas/provide.js +0 -3
- package/dist/schemas/rag.d.ts +4 -4
- package/dist/schemas/registry.d.ts +10 -10
- package/dist/schemas/registry.js +36 -14
- package/dist/schemas/reload-config.d.ts +73 -7
- package/dist/schemas/sdcpp-config.d.ts +16 -8
- package/dist/schemas/sdcpp-config.js +118 -25
- package/dist/schemas/sdk-config.d.ts +116 -90
- package/dist/schemas/sdk-config.js +16 -0
- package/dist/schemas/sdk-errors-client.d.ts +3 -0
- package/dist/schemas/sdk-errors-client.js +16 -1
- package/dist/schemas/sdk-errors-server.d.ts +3 -0
- package/dist/schemas/sdk-errors-server.js +23 -0
- package/dist/schemas/state.d.ts +23 -0
- package/dist/schemas/state.js +14 -0
- package/dist/schemas/stop-provide.d.ts +0 -5
- package/dist/schemas/stop-provide.js +2 -6
- package/dist/schemas/text-to-speech.d.ts +93 -27
- package/dist/schemas/text-to-speech.js +27 -0
- package/dist/schemas/tools.d.ts +16 -0
- package/dist/schemas/tools.js +15 -0
- package/dist/schemas/transcription-config.d.ts +8 -8
- package/dist/schemas/transcription.d.ts +33 -0
- package/dist/schemas/transcription.js +9 -0
- package/dist/schemas/translate.js +59 -19
- package/dist/schemas/translation-config.d.ts +157 -133
- package/dist/schemas/translation-config.js +34 -11
- package/dist/server/bare/delegate-rpc-client.d.ts +1 -1
- package/dist/server/bare/delegate-rpc-client.js +131 -122
- package/dist/server/bare/hyperswarm.d.ts +2 -2
- package/dist/server/bare/hyperswarm.js +12 -7
- package/dist/server/bare/ops/cancel.js +7 -0
- package/dist/server/bare/ops/kv-cache-utils.d.ts +7 -10
- package/dist/server/bare/ops/kv-cache-utils.js +31 -40
- package/dist/server/bare/ops/load-model.js +0 -1
- package/dist/server/bare/ops/transcribe.d.ts +11 -4
- package/dist/server/bare/ops/transcribe.js +25 -4
- package/dist/server/bare/ops/translate.js +42 -4
- package/dist/server/bare/ops/unload-model.js +21 -19
- package/dist/server/bare/plugins/llamacpp-completion/ops/cache-logger.js +1 -2
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.d.ts +13 -8
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.js +257 -85
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-state.d.ts +101 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-state.js +135 -0
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +83 -26
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +57 -32
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +10 -16
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +69 -44
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.js +113 -94
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +1 -1
- package/dist/server/bare/plugins/onnx-ocr/plugin.js +1 -2
- package/dist/server/bare/plugins/onnx-tts/ops/text-to-speech-stream.d.ts +7 -0
- package/dist/server/bare/plugins/onnx-tts/ops/text-to-speech-stream.js +116 -0
- package/dist/server/bare/plugins/onnx-tts/ops/text-to-speech.d.ts +2 -3
- package/dist/server/bare/plugins/onnx-tts/ops/text-to-speech.js +71 -9
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +41 -13
- package/dist/server/bare/plugins/onnx-tts/plugin.js +48 -3
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +15 -7
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +5 -6
- package/dist/server/bare/plugins/sdcpp-generation/ops/diffusion.js +6 -0
- package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +8 -5
- package/dist/server/bare/plugins/sdcpp-generation/plugin.js +13 -13
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +17 -1
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +40 -17
- package/dist/server/bare/registry/config-registry.js +14 -3
- package/dist/server/bare/registry/model-registry.d.ts +8 -10
- package/dist/server/bare/registry/model-registry.js +17 -12
- package/dist/server/bare/registry/registry-client.js +79 -19
- package/dist/server/bare/runtime-lifecycle.d.ts +2 -1
- package/dist/server/bare/runtime-lifecycle.js +13 -2
- package/dist/server/bare/types/addon-responses.d.ts +8 -3
- package/dist/server/bare/utils/transcribe-metadata.d.ts +21 -0
- package/dist/server/bare/utils/transcribe-metadata.js +28 -0
- package/dist/server/bare/utils/tts-stats.d.ts +22 -0
- package/dist/server/bare/utils/tts-stats.js +10 -0
- package/dist/server/rpc/create-server.d.ts +4 -1
- package/dist/server/rpc/create-server.js +5 -1
- package/dist/server/rpc/delegate-transport.js +36 -29
- package/dist/server/rpc/handle-request.js +28 -3
- package/dist/server/rpc/handler-registry.js +7 -1
- package/dist/server/rpc/handler-utils.d.ts +5 -0
- package/dist/server/rpc/handler-utils.js +22 -0
- package/dist/server/rpc/handlers/cancel-delegated.js +3 -5
- package/dist/server/rpc/handlers/cancelHandler.js +4 -5
- package/dist/server/rpc/handlers/completion-stream-delegated.js +14 -5
- package/dist/server/rpc/handlers/delete-cache.js +8 -3
- package/dist/server/rpc/handlers/download-asset.js +3 -24
- package/dist/server/rpc/handlers/get-loaded-model-info.d.ts +3 -0
- package/dist/server/rpc/handlers/get-loaded-model-info.js +39 -0
- package/dist/server/rpc/handlers/get-model-info.js +93 -84
- package/dist/server/rpc/handlers/heartbeat-delegated.js +2 -2
- package/dist/server/rpc/handlers/index.d.ts +6 -0
- package/dist/server/rpc/handlers/index.js +6 -0
- package/dist/server/rpc/handlers/load-model/download-manager.d.ts +35 -9
- package/dist/server/rpc/handlers/load-model/download-manager.js +142 -38
- package/dist/server/rpc/handlers/load-model/download-stats.d.ts +5 -4
- package/dist/server/rpc/handlers/load-model/download-stats.js +49 -8
- package/dist/server/rpc/handlers/load-model/handler.js +31 -50
- package/dist/server/rpc/handlers/load-model/http.d.ts +2 -2
- package/dist/server/rpc/handlers/load-model/http.js +97 -142
- package/dist/server/rpc/handlers/load-model/hyperdrive.d.ts +2 -2
- package/dist/server/rpc/handlers/load-model/hyperdrive.js +55 -74
- package/dist/server/rpc/handlers/load-model/index.d.ts +0 -1
- package/dist/server/rpc/handlers/load-model/index.js +0 -1
- package/dist/server/rpc/handlers/load-model/registry-client-options.d.ts +27 -0
- package/dist/server/rpc/handlers/load-model/registry-client-options.js +19 -0
- package/dist/server/rpc/handlers/load-model/registry-companion-set.d.ts +22 -0
- package/dist/server/rpc/handlers/load-model/registry-companion-set.js +208 -0
- package/dist/server/rpc/handlers/load-model/registry-download-utils.d.ts +24 -0
- package/dist/server/rpc/handlers/load-model/registry-download-utils.js +114 -0
- package/dist/server/rpc/handlers/load-model/registry.d.ts +2 -20
- package/dist/server/rpc/handlers/load-model/registry.js +109 -381
- package/dist/server/rpc/handlers/load-model/resolve-session.d.ts +15 -0
- package/dist/server/rpc/handlers/load-model/resolve-session.js +61 -0
- package/dist/server/rpc/handlers/load-model/resolve.d.ts +3 -3
- package/dist/server/rpc/handlers/load-model/resolve.js +14 -23
- package/dist/server/rpc/handlers/load-model/types.d.ts +11 -4
- package/dist/server/rpc/handlers/load-model/types.js +28 -1
- package/dist/server/rpc/handlers/load-model-delegated.js +2 -4
- package/dist/server/rpc/handlers/plugin-dispatch.js +9 -5
- package/dist/server/rpc/handlers/plugin-invoke.js +1 -1
- package/dist/server/rpc/handlers/provideHandler/connection.js +13 -2
- package/dist/server/rpc/handlers/provideHandler/handler.js +42 -29
- package/dist/server/rpc/handlers/state.d.ts +3 -0
- package/dist/server/rpc/handlers/state.js +7 -0
- package/dist/server/rpc/handlers/stopProvideHandler.d.ts +2 -2
- package/dist/server/rpc/handlers/stopProvideHandler.js +12 -7
- package/dist/server/rpc/handlers/text-to-speech-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/text-to-speech-stream.js +4 -0
- package/dist/server/rpc/handlers/unload-model-delegated.js +3 -3
- package/dist/server/rpc/profiling/operation-metrics.js +20 -0
- package/dist/server/rpc/rpc-utils.js +1 -1
- package/dist/server/rpc/transport-selector.d.ts +3 -0
- package/dist/server/rpc/transport-selector.js +18 -0
- package/dist/server/utils/cache/auto-history.d.ts +4 -0
- package/dist/server/utils/cache/auto-history.js +22 -0
- package/dist/server/utils/{cache.d.ts → cache/paths.d.ts} +22 -5
- package/dist/server/utils/{cache.js → cache/paths.js} +36 -20
- package/dist/server/utils/cache/types.d.ts +8 -0
- package/dist/server/utils/cache/types.js +1 -0
- package/dist/server/utils/checksum.d.ts +2 -2
- package/dist/server/utils/checksum.js +1 -1
- package/dist/server/utils/clear-storage.d.ts +5 -0
- package/dist/server/utils/clear-storage.js +17 -0
- package/dist/server/utils/completion-normalizer.d.ts +17 -0
- package/dist/server/utils/completion-normalizer.js +301 -0
- package/dist/server/utils/expand-gguf-shards.d.ts +3 -0
- package/dist/server/utils/expand-gguf-shards.js +22 -0
- package/dist/server/utils/formatting.js +1 -1
- package/dist/server/utils/index.d.ts +4 -2
- package/dist/server/utils/index.js +4 -2
- package/dist/server/utils/qvac-paths.d.ts +2 -0
- package/dist/server/utils/qvac-paths.js +5 -0
- package/dist/server/utils/response-format.d.ts +3 -0
- package/dist/server/utils/response-format.js +20 -0
- package/dist/server/utils/tool-integration.d.ts +15 -4
- package/dist/server/utils/tool-integration.js +21 -41
- package/dist/server/utils/tools/dialect.d.ts +8 -0
- package/dist/server/utils/tools/dialect.js +12 -0
- package/dist/server/utils/tools/index.d.ts +3 -0
- package/dist/server/utils/tools/index.js +2 -0
- package/dist/server/utils/tools/parser.d.ts +6 -0
- package/dist/server/utils/tools/parser.js +40 -0
- package/dist/server/utils/tools/parsers/hermes.d.ts +4 -0
- package/dist/server/utils/tools/parsers/hermes.js +100 -0
- package/dist/server/utils/tools/parsers/json.d.ts +6 -0
- package/dist/server/utils/tools/parsers/json.js +115 -0
- package/dist/server/utils/tools/parsers/pythonic.d.ts +4 -0
- package/dist/server/utils/tools/parsers/pythonic.js +267 -0
- package/dist/server/utils/tools/shared.d.ts +18 -0
- package/dist/server/utils/tools/shared.js +54 -0
- package/dist/server/utils/worker-lock.d.ts +3 -0
- package/dist/server/utils/worker-lock.js +67 -0
- package/dist/server/worker-core.d.ts +16 -1
- package/dist/server/worker-core.js +114 -14
- package/dist/utils/aggregate-events.d.ts +16 -0
- package/dist/utils/aggregate-events.js +52 -0
- package/dist/utils/cache-normalize.d.ts +10 -0
- package/dist/utils/cache-normalize.js +23 -0
- package/dist/utils/encoding.d.ts +8 -0
- package/dist/utils/encoding.js +13 -0
- package/dist/utils/errors-client.d.ts +12 -0
- package/dist/utils/errors-client.js +20 -0
- package/dist/utils/errors-server.d.ts +14 -0
- package/dist/utils/errors-server.js +31 -0
- package/dist/utils/load-model-validation.d.ts +7 -0
- package/dist/utils/load-model-validation.js +18 -0
- package/expo/plugins/patches/android-link.mjs +1 -1
- package/expo/plugins/patches/ios-link.mjs +1 -1
- package/package.json +15 -19
- package/dist/examples/translation/translation-opus.d.ts +0 -2
- package/dist/examples/translation/translation-opus.js +0 -33
- package/dist/server/bare/utils/loader-adapter.d.ts +0 -7
- package/dist/server/bare/utils/loader-adapter.js +0 -9
- package/dist/server/utils/model-path.d.ts +0 -5
- package/dist/server/utils/model-path.js +0 -7
- package/dist/server/utils/tool-parser.d.ts +0 -7
- package/dist/server/utils/tool-parser.js +0 -248
|
@@ -61,6 +61,7 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
61
61
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
62
62
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
63
63
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
64
|
+
embeddings: "embeddings";
|
|
64
65
|
"llamacpp-completion": "llamacpp-completion";
|
|
65
66
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
66
67
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -71,7 +72,6 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
71
72
|
"sdcpp-generation": "sdcpp-generation";
|
|
72
73
|
llm: "llm";
|
|
73
74
|
whisper: "whisper";
|
|
74
|
-
embeddings: "embeddings";
|
|
75
75
|
nmt: "nmt";
|
|
76
76
|
parakeet: "parakeet";
|
|
77
77
|
tts: "tts";
|
|
@@ -91,6 +91,7 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
91
91
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
92
92
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
93
93
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
94
|
+
embeddings: "embeddings";
|
|
94
95
|
"llamacpp-completion": "llamacpp-completion";
|
|
95
96
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
96
97
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -101,7 +102,6 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
101
102
|
"sdcpp-generation": "sdcpp-generation";
|
|
102
103
|
llm: "llm";
|
|
103
104
|
whisper: "whisper";
|
|
104
|
-
embeddings: "embeddings";
|
|
105
105
|
nmt: "nmt";
|
|
106
106
|
parakeet: "parakeet";
|
|
107
107
|
tts: "tts";
|
|
@@ -121,6 +121,7 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
121
121
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
122
122
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
123
123
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
124
|
+
embeddings: "embeddings";
|
|
124
125
|
"llamacpp-completion": "llamacpp-completion";
|
|
125
126
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
126
127
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -131,7 +132,6 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
131
132
|
"sdcpp-generation": "sdcpp-generation";
|
|
132
133
|
llm: "llm";
|
|
133
134
|
whisper: "whisper";
|
|
134
|
-
embeddings: "embeddings";
|
|
135
135
|
nmt: "nmt";
|
|
136
136
|
parakeet: "parakeet";
|
|
137
137
|
tts: "tts";
|
|
@@ -151,6 +151,7 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
151
151
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
152
152
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
153
153
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
154
|
+
embeddings: "embeddings";
|
|
154
155
|
"llamacpp-completion": "llamacpp-completion";
|
|
155
156
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
156
157
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -161,7 +162,6 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
161
162
|
"sdcpp-generation": "sdcpp-generation";
|
|
162
163
|
llm: "llm";
|
|
163
164
|
whisper: "whisper";
|
|
164
|
-
embeddings: "embeddings";
|
|
165
165
|
nmt: "nmt";
|
|
166
166
|
parakeet: "parakeet";
|
|
167
167
|
tts: "tts";
|
|
@@ -181,6 +181,7 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
181
181
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
182
182
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
183
183
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
184
|
+
embeddings: "embeddings";
|
|
184
185
|
"llamacpp-completion": "llamacpp-completion";
|
|
185
186
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
186
187
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -191,7 +192,6 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
191
192
|
"sdcpp-generation": "sdcpp-generation";
|
|
192
193
|
llm: "llm";
|
|
193
194
|
whisper: "whisper";
|
|
194
|
-
embeddings: "embeddings";
|
|
195
195
|
nmt: "nmt";
|
|
196
196
|
parakeet: "parakeet";
|
|
197
197
|
tts: "tts";
|
|
@@ -211,6 +211,7 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
211
211
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
212
212
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
213
213
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
214
|
+
embeddings: "embeddings";
|
|
214
215
|
"llamacpp-completion": "llamacpp-completion";
|
|
215
216
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
216
217
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -221,7 +222,6 @@ export declare const ttsChatterboxConfigSchema: z.ZodObject<{
|
|
|
221
222
|
"sdcpp-generation": "sdcpp-generation";
|
|
222
223
|
llm: "llm";
|
|
223
224
|
whisper: "whisper";
|
|
224
|
-
embeddings: "embeddings";
|
|
225
225
|
nmt: "nmt";
|
|
226
226
|
parakeet: "parakeet";
|
|
227
227
|
tts: "tts";
|
|
@@ -253,6 +253,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
253
253
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
254
254
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
255
255
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
256
|
+
embeddings: "embeddings";
|
|
256
257
|
"llamacpp-completion": "llamacpp-completion";
|
|
257
258
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
258
259
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -263,7 +264,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
263
264
|
"sdcpp-generation": "sdcpp-generation";
|
|
264
265
|
llm: "llm";
|
|
265
266
|
whisper: "whisper";
|
|
266
|
-
embeddings: "embeddings";
|
|
267
267
|
nmt: "nmt";
|
|
268
268
|
parakeet: "parakeet";
|
|
269
269
|
tts: "tts";
|
|
@@ -283,6 +283,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
283
283
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
284
284
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
285
285
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
286
|
+
embeddings: "embeddings";
|
|
286
287
|
"llamacpp-completion": "llamacpp-completion";
|
|
287
288
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
288
289
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -293,7 +294,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
293
294
|
"sdcpp-generation": "sdcpp-generation";
|
|
294
295
|
llm: "llm";
|
|
295
296
|
whisper: "whisper";
|
|
296
|
-
embeddings: "embeddings";
|
|
297
297
|
nmt: "nmt";
|
|
298
298
|
parakeet: "parakeet";
|
|
299
299
|
tts: "tts";
|
|
@@ -313,6 +313,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
313
313
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
314
314
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
315
315
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
316
|
+
embeddings: "embeddings";
|
|
316
317
|
"llamacpp-completion": "llamacpp-completion";
|
|
317
318
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
318
319
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -323,7 +324,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
323
324
|
"sdcpp-generation": "sdcpp-generation";
|
|
324
325
|
llm: "llm";
|
|
325
326
|
whisper: "whisper";
|
|
326
|
-
embeddings: "embeddings";
|
|
327
327
|
nmt: "nmt";
|
|
328
328
|
parakeet: "parakeet";
|
|
329
329
|
tts: "tts";
|
|
@@ -343,6 +343,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
343
343
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
344
344
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
345
345
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
346
|
+
embeddings: "embeddings";
|
|
346
347
|
"llamacpp-completion": "llamacpp-completion";
|
|
347
348
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
348
349
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -353,7 +354,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
353
354
|
"sdcpp-generation": "sdcpp-generation";
|
|
354
355
|
llm: "llm";
|
|
355
356
|
whisper: "whisper";
|
|
356
|
-
embeddings: "embeddings";
|
|
357
357
|
nmt: "nmt";
|
|
358
358
|
parakeet: "parakeet";
|
|
359
359
|
tts: "tts";
|
|
@@ -373,6 +373,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
373
373
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
374
374
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
375
375
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
376
|
+
embeddings: "embeddings";
|
|
376
377
|
"llamacpp-completion": "llamacpp-completion";
|
|
377
378
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
378
379
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -383,7 +384,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
383
384
|
"sdcpp-generation": "sdcpp-generation";
|
|
384
385
|
llm: "llm";
|
|
385
386
|
whisper: "whisper";
|
|
386
|
-
embeddings: "embeddings";
|
|
387
387
|
nmt: "nmt";
|
|
388
388
|
parakeet: "parakeet";
|
|
389
389
|
tts: "tts";
|
|
@@ -403,6 +403,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
403
403
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
404
404
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
405
405
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
406
|
+
embeddings: "embeddings";
|
|
406
407
|
"llamacpp-completion": "llamacpp-completion";
|
|
407
408
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
408
409
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -413,7 +414,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
413
414
|
"sdcpp-generation": "sdcpp-generation";
|
|
414
415
|
llm: "llm";
|
|
415
416
|
whisper: "whisper";
|
|
416
|
-
embeddings: "embeddings";
|
|
417
417
|
nmt: "nmt";
|
|
418
418
|
parakeet: "parakeet";
|
|
419
419
|
tts: "tts";
|
|
@@ -433,6 +433,7 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
433
433
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
434
434
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
435
435
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
436
|
+
embeddings: "embeddings";
|
|
436
437
|
"llamacpp-completion": "llamacpp-completion";
|
|
437
438
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
438
439
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -443,7 +444,6 @@ export declare const ttsSupertonicConfigSchema: z.ZodObject<{
|
|
|
443
444
|
"sdcpp-generation": "sdcpp-generation";
|
|
444
445
|
llm: "llm";
|
|
445
446
|
whisper: "whisper";
|
|
446
|
-
embeddings: "embeddings";
|
|
447
447
|
nmt: "nmt";
|
|
448
448
|
parakeet: "parakeet";
|
|
449
449
|
tts: "tts";
|
|
@@ -472,6 +472,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
472
472
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
473
473
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
474
474
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
475
|
+
embeddings: "embeddings";
|
|
475
476
|
"llamacpp-completion": "llamacpp-completion";
|
|
476
477
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
477
478
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -482,7 +483,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
482
483
|
"sdcpp-generation": "sdcpp-generation";
|
|
483
484
|
llm: "llm";
|
|
484
485
|
whisper: "whisper";
|
|
485
|
-
embeddings: "embeddings";
|
|
486
486
|
nmt: "nmt";
|
|
487
487
|
parakeet: "parakeet";
|
|
488
488
|
tts: "tts";
|
|
@@ -502,6 +502,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
502
502
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
503
503
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
504
504
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
505
|
+
embeddings: "embeddings";
|
|
505
506
|
"llamacpp-completion": "llamacpp-completion";
|
|
506
507
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
507
508
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -512,7 +513,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
512
513
|
"sdcpp-generation": "sdcpp-generation";
|
|
513
514
|
llm: "llm";
|
|
514
515
|
whisper: "whisper";
|
|
515
|
-
embeddings: "embeddings";
|
|
516
516
|
nmt: "nmt";
|
|
517
517
|
parakeet: "parakeet";
|
|
518
518
|
tts: "tts";
|
|
@@ -532,6 +532,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
532
532
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
533
533
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
534
534
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
535
|
+
embeddings: "embeddings";
|
|
535
536
|
"llamacpp-completion": "llamacpp-completion";
|
|
536
537
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
537
538
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -542,7 +543,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
542
543
|
"sdcpp-generation": "sdcpp-generation";
|
|
543
544
|
llm: "llm";
|
|
544
545
|
whisper: "whisper";
|
|
545
|
-
embeddings: "embeddings";
|
|
546
546
|
nmt: "nmt";
|
|
547
547
|
parakeet: "parakeet";
|
|
548
548
|
tts: "tts";
|
|
@@ -562,6 +562,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
562
562
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
563
563
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
564
564
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
565
|
+
embeddings: "embeddings";
|
|
565
566
|
"llamacpp-completion": "llamacpp-completion";
|
|
566
567
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
567
568
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -572,7 +573,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
572
573
|
"sdcpp-generation": "sdcpp-generation";
|
|
573
574
|
llm: "llm";
|
|
574
575
|
whisper: "whisper";
|
|
575
|
-
embeddings: "embeddings";
|
|
576
576
|
nmt: "nmt";
|
|
577
577
|
parakeet: "parakeet";
|
|
578
578
|
tts: "tts";
|
|
@@ -592,6 +592,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
592
592
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
593
593
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
594
594
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
595
|
+
embeddings: "embeddings";
|
|
595
596
|
"llamacpp-completion": "llamacpp-completion";
|
|
596
597
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
597
598
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -602,7 +603,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
602
603
|
"sdcpp-generation": "sdcpp-generation";
|
|
603
604
|
llm: "llm";
|
|
604
605
|
whisper: "whisper";
|
|
605
|
-
embeddings: "embeddings";
|
|
606
606
|
nmt: "nmt";
|
|
607
607
|
parakeet: "parakeet";
|
|
608
608
|
tts: "tts";
|
|
@@ -622,6 +622,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
622
622
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
623
623
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
624
624
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
625
|
+
embeddings: "embeddings";
|
|
625
626
|
"llamacpp-completion": "llamacpp-completion";
|
|
626
627
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
627
628
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -632,7 +633,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
632
633
|
"sdcpp-generation": "sdcpp-generation";
|
|
633
634
|
llm: "llm";
|
|
634
635
|
whisper: "whisper";
|
|
635
|
-
embeddings: "embeddings";
|
|
636
636
|
nmt: "nmt";
|
|
637
637
|
parakeet: "parakeet";
|
|
638
638
|
tts: "tts";
|
|
@@ -663,6 +663,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
663
663
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
664
664
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
665
665
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
666
|
+
embeddings: "embeddings";
|
|
666
667
|
"llamacpp-completion": "llamacpp-completion";
|
|
667
668
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
668
669
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -673,7 +674,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
673
674
|
"sdcpp-generation": "sdcpp-generation";
|
|
674
675
|
llm: "llm";
|
|
675
676
|
whisper: "whisper";
|
|
676
|
-
embeddings: "embeddings";
|
|
677
677
|
nmt: "nmt";
|
|
678
678
|
parakeet: "parakeet";
|
|
679
679
|
tts: "tts";
|
|
@@ -693,6 +693,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
693
693
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
694
694
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
695
695
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
696
|
+
embeddings: "embeddings";
|
|
696
697
|
"llamacpp-completion": "llamacpp-completion";
|
|
697
698
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
698
699
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -703,7 +704,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
703
704
|
"sdcpp-generation": "sdcpp-generation";
|
|
704
705
|
llm: "llm";
|
|
705
706
|
whisper: "whisper";
|
|
706
|
-
embeddings: "embeddings";
|
|
707
707
|
nmt: "nmt";
|
|
708
708
|
parakeet: "parakeet";
|
|
709
709
|
tts: "tts";
|
|
@@ -723,6 +723,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
723
723
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
724
724
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
725
725
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
726
|
+
embeddings: "embeddings";
|
|
726
727
|
"llamacpp-completion": "llamacpp-completion";
|
|
727
728
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
728
729
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -733,7 +734,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
733
734
|
"sdcpp-generation": "sdcpp-generation";
|
|
734
735
|
llm: "llm";
|
|
735
736
|
whisper: "whisper";
|
|
736
|
-
embeddings: "embeddings";
|
|
737
737
|
nmt: "nmt";
|
|
738
738
|
parakeet: "parakeet";
|
|
739
739
|
tts: "tts";
|
|
@@ -753,6 +753,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
753
753
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
754
754
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
755
755
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
756
|
+
embeddings: "embeddings";
|
|
756
757
|
"llamacpp-completion": "llamacpp-completion";
|
|
757
758
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
758
759
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -763,7 +764,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
763
764
|
"sdcpp-generation": "sdcpp-generation";
|
|
764
765
|
llm: "llm";
|
|
765
766
|
whisper: "whisper";
|
|
766
|
-
embeddings: "embeddings";
|
|
767
767
|
nmt: "nmt";
|
|
768
768
|
parakeet: "parakeet";
|
|
769
769
|
tts: "tts";
|
|
@@ -783,6 +783,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
783
783
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
784
784
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
785
785
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
786
|
+
embeddings: "embeddings";
|
|
786
787
|
"llamacpp-completion": "llamacpp-completion";
|
|
787
788
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
788
789
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -793,7 +794,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
793
794
|
"sdcpp-generation": "sdcpp-generation";
|
|
794
795
|
llm: "llm";
|
|
795
796
|
whisper: "whisper";
|
|
796
|
-
embeddings: "embeddings";
|
|
797
797
|
nmt: "nmt";
|
|
798
798
|
parakeet: "parakeet";
|
|
799
799
|
tts: "tts";
|
|
@@ -813,6 +813,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
813
813
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
814
814
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
815
815
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
816
|
+
embeddings: "embeddings";
|
|
816
817
|
"llamacpp-completion": "llamacpp-completion";
|
|
817
818
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
818
819
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -823,7 +824,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
823
824
|
"sdcpp-generation": "sdcpp-generation";
|
|
824
825
|
llm: "llm";
|
|
825
826
|
whisper: "whisper";
|
|
826
|
-
embeddings: "embeddings";
|
|
827
827
|
nmt: "nmt";
|
|
828
828
|
parakeet: "parakeet";
|
|
829
829
|
tts: "tts";
|
|
@@ -843,6 +843,7 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
843
843
|
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
844
844
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
845
845
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
846
|
+
embeddings: "embeddings";
|
|
846
847
|
"llamacpp-completion": "llamacpp-completion";
|
|
847
848
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
848
849
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
@@ -853,7 +854,6 @@ export declare const ttsConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
853
854
|
"sdcpp-generation": "sdcpp-generation";
|
|
854
855
|
llm: "llm";
|
|
855
856
|
whisper: "whisper";
|
|
856
|
-
embeddings: "embeddings";
|
|
857
857
|
nmt: "nmt";
|
|
858
858
|
parakeet: "parakeet";
|
|
859
859
|
tts: "tts";
|
|
@@ -867,12 +867,18 @@ export declare const ttsClientParamsSchema: z.ZodObject<{
|
|
|
867
867
|
inputType: z.ZodDefault<z.ZodString>;
|
|
868
868
|
text: z.ZodString;
|
|
869
869
|
stream: z.ZodDefault<z.ZodBoolean>;
|
|
870
|
+
sentenceStream: z.ZodDefault<z.ZodBoolean>;
|
|
871
|
+
sentenceStreamLocale: z.ZodOptional<z.ZodString>;
|
|
872
|
+
sentenceStreamMaxChunkScalars: z.ZodOptional<z.ZodNumber>;
|
|
870
873
|
}, z.core.$strip>;
|
|
871
874
|
export declare const ttsRequestSchema: z.ZodObject<{
|
|
872
875
|
modelId: z.ZodString;
|
|
873
876
|
inputType: z.ZodDefault<z.ZodString>;
|
|
874
877
|
text: z.ZodString;
|
|
875
878
|
stream: z.ZodDefault<z.ZodBoolean>;
|
|
879
|
+
sentenceStream: z.ZodDefault<z.ZodBoolean>;
|
|
880
|
+
sentenceStreamLocale: z.ZodOptional<z.ZodString>;
|
|
881
|
+
sentenceStreamMaxChunkScalars: z.ZodOptional<z.ZodNumber>;
|
|
876
882
|
type: z.ZodLiteral<"textToSpeech">;
|
|
877
883
|
}, z.core.$strip>;
|
|
878
884
|
export declare const ttsStatsSchema: z.ZodObject<{
|
|
@@ -887,6 +893,44 @@ export declare const ttsResponseSchema: z.ZodObject<{
|
|
|
887
893
|
audioDuration: z.ZodOptional<z.ZodNumber>;
|
|
888
894
|
totalSamples: z.ZodOptional<z.ZodNumber>;
|
|
889
895
|
}, z.core.$strip>>;
|
|
896
|
+
chunkIndex: z.ZodOptional<z.ZodNumber>;
|
|
897
|
+
sentenceChunk: z.ZodOptional<z.ZodString>;
|
|
898
|
+
}, z.core.$strip>;
|
|
899
|
+
declare const textToSpeechStreamRequestBaseSchema: z.ZodObject<{
|
|
900
|
+
modelId: z.ZodString;
|
|
901
|
+
inputType: z.ZodDefault<z.ZodString>;
|
|
902
|
+
accumulateSentences: z.ZodOptional<z.ZodBoolean>;
|
|
903
|
+
sentenceDelimiterPreset: z.ZodOptional<z.ZodEnum<{
|
|
904
|
+
latin: "latin";
|
|
905
|
+
cjk: "cjk";
|
|
906
|
+
multilingual: "multilingual";
|
|
907
|
+
}>>;
|
|
908
|
+
maxBufferScalars: z.ZodOptional<z.ZodNumber>;
|
|
909
|
+
flushAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
910
|
+
}, z.core.$strip>;
|
|
911
|
+
export declare const textToSpeechStreamRequestSchema: z.ZodObject<{
|
|
912
|
+
modelId: z.ZodString;
|
|
913
|
+
inputType: z.ZodDefault<z.ZodString>;
|
|
914
|
+
accumulateSentences: z.ZodOptional<z.ZodBoolean>;
|
|
915
|
+
sentenceDelimiterPreset: z.ZodOptional<z.ZodEnum<{
|
|
916
|
+
latin: "latin";
|
|
917
|
+
cjk: "cjk";
|
|
918
|
+
multilingual: "multilingual";
|
|
919
|
+
}>>;
|
|
920
|
+
maxBufferScalars: z.ZodOptional<z.ZodNumber>;
|
|
921
|
+
flushAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
922
|
+
type: z.ZodLiteral<"textToSpeechStream">;
|
|
923
|
+
}, z.core.$strip>;
|
|
924
|
+
export declare const textToSpeechStreamResponseSchema: z.ZodObject<{
|
|
925
|
+
type: z.ZodLiteral<"textToSpeechStream">;
|
|
926
|
+
buffer: z.ZodArray<z.ZodNumber>;
|
|
927
|
+
done: z.ZodDefault<z.ZodBoolean>;
|
|
928
|
+
stats: z.ZodOptional<z.ZodObject<{
|
|
929
|
+
audioDuration: z.ZodOptional<z.ZodNumber>;
|
|
930
|
+
totalSamples: z.ZodOptional<z.ZodNumber>;
|
|
931
|
+
}, z.core.$strip>>;
|
|
932
|
+
chunkIndex: z.ZodOptional<z.ZodNumber>;
|
|
933
|
+
sentenceChunk: z.ZodOptional<z.ZodString>;
|
|
890
934
|
}, z.core.$strip>;
|
|
891
935
|
export type TtsLanguage = (typeof TTS_LANGUAGES)[number];
|
|
892
936
|
export type TtsChatterboxConfig = z.infer<typeof ttsChatterboxConfigSchema>;
|
|
@@ -895,8 +939,30 @@ export type TtsConfig = z.infer<typeof ttsConfigSchema>;
|
|
|
895
939
|
export type TtsChatterboxRuntimeConfig = z.infer<typeof ttsChatterboxRuntimeConfigSchema>;
|
|
896
940
|
export type TtsSupertonicRuntimeConfig = z.infer<typeof ttsSupertonicRuntimeConfigSchema>;
|
|
897
941
|
export type TtsRuntimeConfig = z.infer<typeof ttsRuntimeConfigSchema>;
|
|
898
|
-
export type
|
|
942
|
+
export type TtsClientParamsInput = z.input<typeof ttsClientParamsSchema>;
|
|
943
|
+
export type TtsClientParams = z.output<typeof ttsClientParamsSchema>;
|
|
899
944
|
export type TtsRequest = z.infer<typeof ttsRequestSchema>;
|
|
900
945
|
export type TtsResponse = z.infer<typeof ttsResponseSchema>;
|
|
901
946
|
export type TtsStats = z.infer<typeof ttsStatsSchema>;
|
|
947
|
+
export type TtsSentenceChunkUpdate = {
|
|
948
|
+
buffer: number[];
|
|
949
|
+
chunkIndex?: number;
|
|
950
|
+
sentenceChunk?: string;
|
|
951
|
+
};
|
|
952
|
+
export type TextToSpeechStreamRequest = z.infer<typeof textToSpeechStreamRequestSchema>;
|
|
953
|
+
export type TextToSpeechStreamResponse = z.infer<typeof textToSpeechStreamResponseSchema>;
|
|
954
|
+
export type TextToSpeechStreamClientParams = z.infer<typeof textToSpeechStreamRequestBaseSchema>;
|
|
955
|
+
export interface TextToSpeechStreamResult {
|
|
956
|
+
bufferStream: AsyncGenerator<number>;
|
|
957
|
+
chunkUpdates?: AsyncGenerator<TtsSentenceChunkUpdate>;
|
|
958
|
+
buffer: Promise<number[]>;
|
|
959
|
+
done: Promise<boolean>;
|
|
960
|
+
}
|
|
961
|
+
export interface TextToSpeechStreamSession {
|
|
962
|
+
write(textFragment: string | Buffer): void;
|
|
963
|
+
end(): void;
|
|
964
|
+
destroy(): void;
|
|
965
|
+
[Symbol.asyncIterator](): AsyncIterator<TextToSpeechStreamResponse>;
|
|
966
|
+
}
|
|
967
|
+
export {};
|
|
902
968
|
//# sourceMappingURL=text-to-speech.d.ts.map
|
|
@@ -49,6 +49,9 @@ export const ttsClientParamsSchema = z.object({
|
|
|
49
49
|
inputType: z.string().default("text"),
|
|
50
50
|
text: z.string().trim().min(1, "text must not be empty or whitespace-only"),
|
|
51
51
|
stream: z.boolean().default(true),
|
|
52
|
+
sentenceStream: z.boolean().default(false),
|
|
53
|
+
sentenceStreamLocale: z.string().optional(),
|
|
54
|
+
sentenceStreamMaxChunkScalars: z.number().positive().optional(),
|
|
52
55
|
});
|
|
53
56
|
export const ttsRequestSchema = ttsClientParamsSchema.extend({
|
|
54
57
|
type: z.literal("textToSpeech"),
|
|
@@ -62,4 +65,28 @@ export const ttsResponseSchema = z.object({
|
|
|
62
65
|
buffer: z.array(z.number()),
|
|
63
66
|
done: z.boolean().default(false),
|
|
64
67
|
stats: ttsStatsSchema.optional(),
|
|
68
|
+
chunkIndex: z.number().int().nonnegative().optional(),
|
|
69
|
+
sentenceChunk: z.string().optional(),
|
|
70
|
+
});
|
|
71
|
+
// Internal: kept un-exported to present a single request-schema surface to
|
|
72
|
+
// consumers. The inferred `TextToSpeechStreamClientParams` type below uses
|
|
73
|
+
// this shape via `typeof`, no runtime export needed.
|
|
74
|
+
const textToSpeechStreamRequestBaseSchema = z.object({
|
|
75
|
+
modelId: z.string(),
|
|
76
|
+
inputType: z.string().default("text"),
|
|
77
|
+
accumulateSentences: z.boolean().optional(),
|
|
78
|
+
sentenceDelimiterPreset: z.enum(["latin", "cjk", "multilingual"]).optional(),
|
|
79
|
+
maxBufferScalars: z.number().positive().optional(),
|
|
80
|
+
flushAfterMs: z.number().positive().optional(),
|
|
81
|
+
});
|
|
82
|
+
export const textToSpeechStreamRequestSchema = textToSpeechStreamRequestBaseSchema.extend({
|
|
83
|
+
type: z.literal("textToSpeechStream"),
|
|
84
|
+
});
|
|
85
|
+
export const textToSpeechStreamResponseSchema = z.object({
|
|
86
|
+
type: z.literal("textToSpeechStream"),
|
|
87
|
+
buffer: z.array(z.number()),
|
|
88
|
+
done: z.boolean().default(false),
|
|
89
|
+
stats: ttsStatsSchema.optional(),
|
|
90
|
+
chunkIndex: z.number().int().nonnegative().optional(),
|
|
91
|
+
sentenceChunk: z.string().optional(),
|
|
65
92
|
});
|
package/dist/schemas/tools.d.ts
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* `static` (default) — tools are prepended once after the system message and
|
|
4
|
+
* shared across the chat session.
|
|
5
|
+
* `dynamic` — tools are anchored after the last user message and trimmed
|
|
6
|
+
* from the kv-cache once the tool-call chain resolves, so each user prompt
|
|
7
|
+
* can carry its own tool set without poisoning the cache.
|
|
8
|
+
*
|
|
9
|
+
* Implementation detail: maps to the addon's `tools_compact` boolean. The
|
|
10
|
+
* SDK uses the higher-level `static`/`dynamic` naming so the addon-side
|
|
11
|
+
* mapping can change without breaking the public API.
|
|
12
|
+
*/
|
|
13
|
+
export declare const TOOLS_MODE: {
|
|
14
|
+
readonly static: "static";
|
|
15
|
+
readonly dynamic: "dynamic";
|
|
16
|
+
};
|
|
17
|
+
export type ToolsMode = (typeof TOOLS_MODE)[keyof typeof TOOLS_MODE];
|
|
2
18
|
export declare const toolSchema: z.ZodObject<{
|
|
3
19
|
type: z.ZodLiteral<"function">;
|
|
4
20
|
name: z.ZodString;
|
package/dist/schemas/tools.js
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* `static` (default) — tools are prepended once after the system message and
|
|
4
|
+
* shared across the chat session.
|
|
5
|
+
* `dynamic` — tools are anchored after the last user message and trimmed
|
|
6
|
+
* from the kv-cache once the tool-call chain resolves, so each user prompt
|
|
7
|
+
* can carry its own tool set without poisoning the cache.
|
|
8
|
+
*
|
|
9
|
+
* Implementation detail: maps to the addon's `tools_compact` boolean. The
|
|
10
|
+
* SDK uses the higher-level `static`/`dynamic` naming so the addon-side
|
|
11
|
+
* mapping can change without breaking the public API.
|
|
12
|
+
*/
|
|
13
|
+
export const TOOLS_MODE = {
|
|
14
|
+
static: "static",
|
|
15
|
+
dynamic: "dynamic",
|
|
16
|
+
};
|
|
2
17
|
export const toolSchema = z.object({
|
|
3
18
|
type: z.literal("function"),
|
|
4
19
|
name: z.string(),
|