@qvac/sdk 0.10.2 → 0.12.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 +1455 -29
- package/README.md +2 -0
- package/dist/client/api/cancel.d.ts +24 -32
- package/dist/client/api/cancel.js +58 -31
- package/dist/client/api/classify.d.ts +23 -0
- package/dist/client/api/classify.js +43 -0
- package/dist/client/api/client-request-id.d.ts +17 -0
- package/dist/client/api/client-request-id.js +27 -0
- package/dist/client/api/completion-stream.d.ts +1 -1
- package/dist/client/api/completion-stream.js +34 -3
- package/dist/client/api/diffusion.d.ts +46 -0
- package/dist/client/api/diffusion.js +50 -1
- package/dist/client/api/download-asset.d.ts +12 -2
- package/dist/client/api/download-asset.js +21 -3
- package/dist/client/api/embed.d.ts +8 -4
- package/dist/client/api/embed.js +14 -1
- package/dist/client/api/get-model-info.d.ts +1 -1
- package/dist/client/api/index.d.ts +5 -0
- package/dist/client/api/index.js +5 -0
- package/dist/client/api/load-model.d.ts +12 -4
- package/dist/client/api/load-model.js +49 -2
- package/dist/client/api/rag.d.ts +9 -3
- package/dist/client/api/rag.js +23 -3
- package/dist/client/api/transcribe.d.ts +23 -8
- package/dist/client/api/transcribe.js +69 -4
- package/dist/client/api/unload-model.d.ts +5 -2
- package/dist/client/api/unload-model.js +9 -4
- package/dist/client/api/upscale.d.ts +45 -0
- package/dist/client/api/upscale.js +99 -0
- package/dist/client/api/video.d.ts +64 -0
- package/dist/client/api/video.js +147 -0
- package/dist/client/api/vla-helpers.d.ts +45 -0
- package/dist/client/api/vla-helpers.js +130 -0
- package/dist/client/api/vla.d.ts +65 -0
- package/dist/client/api/vla.js +109 -0
- package/dist/client/config-loader/resolve-config.node.d.ts +16 -0
- package/dist/client/config-loader/resolve-config.node.js +77 -23
- package/dist/client/plugins-factory.d.ts +8 -0
- package/dist/client/plugins-factory.js +10 -0
- package/dist/client/rpc/bare-client.js +62 -66
- package/dist/client/rpc/ensure-worker-ready.d.ts +9 -0
- package/dist/client/rpc/ensure-worker-ready.js +17 -0
- package/dist/client/rpc/expo-rpc-client.js +2 -1
- package/dist/client/rpc/node-rpc-client.js +22 -8
- package/dist/client/rpc/rpc-client.d.ts +2 -2
- package/dist/client/rpc/rpc-client.js +10 -4
- package/dist/client/rpc/rpc-error.d.ts +9 -0
- package/dist/client/rpc/rpc-error.js +105 -0
- package/dist/commands/bundle/bare-pack.d.ts +13 -0
- package/dist/commands/bundle/bare-pack.js +54 -0
- package/dist/commands/bundle/constants.d.ts +7 -0
- package/dist/commands/bundle/constants.js +23 -0
- package/dist/commands/bundle/entry-gen.d.ts +2 -0
- package/dist/commands/bundle/entry-gen.js +48 -0
- package/dist/commands/bundle/index.d.ts +20 -0
- package/dist/commands/bundle/index.js +141 -0
- package/dist/commands/bundle/manifest.d.ts +21 -0
- package/dist/commands/bundle/manifest.js +193 -0
- package/dist/commands/bundle/plugins.d.ts +9 -0
- package/dist/commands/bundle/plugins.js +51 -0
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/verify/abi.d.ts +52 -0
- package/dist/commands/verify/abi.js +125 -0
- package/dist/commands/verify/addon-source.d.ts +43 -0
- package/dist/commands/verify/addon-source.js +75 -0
- package/dist/commands/verify/bundle-source.d.ts +12 -0
- package/dist/commands/verify/bundle-source.js +53 -0
- package/dist/commands/verify/index.d.ts +59 -0
- package/dist/commands/verify/index.js +371 -0
- package/dist/commands/verify/node-modules-source.d.ts +11 -0
- package/dist/commands/verify/node-modules-source.js +76 -0
- package/dist/commands/verify/prebuilds.d.ts +15 -0
- package/dist/commands/verify/prebuilds.js +39 -0
- package/dist/examples/cancel-by-request-id.d.ts +38 -0
- package/dist/examples/cancel-by-request-id.js +103 -0
- package/dist/examples/classification/classify-image.d.ts +2 -0
- package/dist/examples/classification/classify-image.js +23 -0
- package/dist/examples/diffusion-esrgan-upscale.d.ts +2 -0
- package/dist/examples/diffusion-esrgan-upscale.js +78 -0
- package/dist/examples/diffusion-txt2vid.d.ts +2 -0
- package/dist/examples/diffusion-txt2vid.js +81 -0
- package/dist/examples/download-with-cancel.js +10 -10
- package/dist/examples/embed-multi-gpu.d.ts +2 -0
- package/dist/examples/embed-multi-gpu.js +46 -0
- package/dist/examples/llamacpp-multi-gpu.d.ts +2 -0
- package/dist/examples/llamacpp-multi-gpu.js +57 -0
- package/dist/examples/plugins.js +3 -7
- package/dist/examples/rag/rag-hyperdb/cancellation.js +20 -17
- package/dist/examples/tools/llamacpp-tools-gemma4.d.ts +2 -0
- package/dist/examples/tools/llamacpp-tools-gemma4.js +73 -0
- package/dist/examples/tools/llamacpp-tools-qwen35.d.ts +2 -0
- package/dist/examples/tools/llamacpp-tools-qwen35.js +69 -0
- package/dist/examples/transcription/parakeet-ctc-filesystem.js +18 -12
- package/dist/examples/transcription/parakeet-microphone-record.js +7 -12
- package/dist/examples/transcription/parakeet-microphone-stream.d.ts +2 -0
- package/dist/examples/transcription/parakeet-microphone-stream.js +79 -0
- package/dist/examples/transcription/parakeet-sortformer-streaming.d.ts +2 -0
- package/dist/examples/transcription/parakeet-sortformer-streaming.js +121 -0
- package/dist/examples/transcription/parakeet-sortformer.js +58 -55
- package/dist/examples/transcription/parakeet-tdt-filesystem.js +18 -15
- package/dist/examples/transcription/whispercpp-microphone-conversation.d.ts +2 -0
- package/dist/examples/transcription/whispercpp-microphone-conversation.js +107 -0
- package/dist/examples/tts/chatterbox.js +7 -16
- package/dist/examples/tts/llm-to-tts-streaming.js +3 -10
- package/dist/examples/tts/supertonic-multilingual.js +4 -12
- package/dist/examples/tts/supertonic.js +5 -12
- package/dist/examples/vla-smolvla.d.ts +2 -0
- package/dist/examples/vla-smolvla.js +75 -0
- package/dist/examples/voice-assistant/voice-assistant.js +3 -10
- package/dist/expo/plugins/find-in-ancestor-node-modules.d.ts +14 -0
- package/dist/expo/plugins/find-in-ancestor-node-modules.js +24 -0
- package/dist/expo/plugins/get-project-root.d.ts +22 -0
- package/dist/expo/plugins/get-project-root.js +23 -0
- package/dist/expo/plugins/index.d.ts +4 -0
- package/dist/expo/plugins/index.js +4 -0
- package/dist/expo/plugins/resolve-sdk-package-dir.d.ts +9 -2
- package/dist/expo/plugins/resolve-sdk-package-dir.js +38 -11
- package/dist/expo/plugins/withDeviceInfo.js +2 -1
- package/dist/expo/plugins/withMobileBundle.d.ts +5 -4
- package/dist/expo/plugins/withMobileBundle.js +42 -58
- package/dist/index.d.ts +6 -2
- package/dist/index.js +23 -2
- package/dist/models/registry/models.d.ts +3725 -514
- package/dist/models/registry/models.js +7269 -3910
- package/dist/models/update-models/naming.js +22 -8
- package/dist/pear/pre.d.ts +3 -0
- package/dist/pear/pre.js +9 -2
- package/dist/schemas/cancel.d.ts +172 -28
- package/dist/schemas/cancel.js +120 -19
- package/dist/schemas/classification.d.ts +53 -0
- package/dist/schemas/classification.js +33 -0
- package/dist/schemas/common.d.ts +860 -1379
- package/dist/schemas/common.js +8 -1
- package/dist/schemas/completion-event.d.ts +17 -0
- package/dist/schemas/completion-event.js +12 -1
- package/dist/schemas/completion-stream.d.ts +16 -1
- package/dist/schemas/completion-stream.js +25 -7
- package/dist/schemas/download-asset.d.ts +25 -9
- package/dist/schemas/download-asset.js +17 -6
- package/dist/schemas/embed.d.ts +1 -0
- package/dist/schemas/embed.js +5 -0
- package/dist/schemas/engine-addon-map.d.ts +3 -0
- package/dist/schemas/engine-addon-map.js +18 -5
- package/dist/schemas/error.d.ts +31 -0
- package/dist/schemas/error.js +29 -1
- package/dist/schemas/finetune.d.ts +2 -0
- package/dist/schemas/finetune.js +5 -0
- package/dist/schemas/get-model-info.d.ts +10 -6
- package/dist/schemas/get-model-info.js +2 -0
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/llamacpp-config.d.ts +64 -8
- package/dist/schemas/llamacpp-config.js +12 -0
- package/dist/schemas/load-model.d.ts +4644 -8605
- package/dist/schemas/load-model.js +90 -7
- package/dist/schemas/model-src-utils.d.ts +34 -14
- package/dist/schemas/model-types.d.ts +54 -14
- package/dist/schemas/model-types.js +28 -5
- package/dist/schemas/ocr.d.ts +8 -3
- package/dist/schemas/plugin.d.ts +60 -6
- package/dist/schemas/plugin.js +31 -5
- package/dist/schemas/rag.d.ts +9 -0
- package/dist/schemas/rag.js +17 -9
- package/dist/schemas/registry.d.ts +74 -30
- package/dist/schemas/registry.js +5 -0
- package/dist/schemas/reload-config.d.ts +34 -14
- package/dist/schemas/sdcpp-config.d.ts +445 -16
- package/dist/schemas/sdcpp-config.js +387 -26
- package/dist/schemas/sdk-config.d.ts +2431 -2723
- package/dist/schemas/sdk-config.js +16 -1
- package/dist/schemas/sdk-errors-client.d.ts +6 -0
- package/dist/schemas/sdk-errors-client.js +31 -1
- package/dist/schemas/sdk-errors-server.d.ts +8 -1
- package/dist/schemas/sdk-errors-server.js +45 -5
- package/dist/schemas/text-to-speech.d.ts +81 -698
- package/dist/schemas/text-to-speech.js +46 -19
- package/dist/schemas/transcription-config.d.ts +40 -229
- package/dist/schemas/transcription-config.js +76 -15
- package/dist/schemas/transcription.d.ts +108 -2
- package/dist/schemas/transcription.js +81 -0
- package/dist/schemas/translate.d.ts +2 -0
- package/dist/schemas/translate.js +13 -2
- package/dist/schemas/translation-config.d.ts +90 -40
- package/dist/schemas/unload-model.d.ts +2 -1
- package/dist/schemas/unload-model.js +4 -1
- package/dist/schemas/vla.d.ts +87 -0
- package/dist/schemas/vla.js +108 -0
- package/dist/scripts/run-unit-tests.js +22 -3
- package/dist/server/bare/ops/cancel.d.ts +27 -1
- package/dist/server/bare/ops/cancel.js +36 -10
- package/dist/server/bare/ops/embed.d.ts +3 -3
- package/dist/server/bare/ops/embed.js +144 -28
- package/dist/server/bare/ops/kv-cache-utils.d.ts +0 -7
- package/dist/server/bare/ops/kv-cache-utils.js +8 -47
- package/dist/server/bare/ops/transcribe.d.ts +11 -5
- package/dist/server/bare/ops/transcribe.js +230 -50
- package/dist/server/bare/ops/translate.d.ts +1 -1
- package/dist/server/bare/ops/translate.js +197 -88
- package/dist/server/bare/plugins/ggml-classification/ops/classify.d.ts +6 -0
- package/dist/server/bare/plugins/ggml-classification/ops/classify.js +30 -0
- package/dist/server/bare/plugins/ggml-classification/plugin.d.ts +32 -0
- package/dist/server/bare/plugins/ggml-classification/plugin.js +55 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-hparams.d.ts +3 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-hparams.js +12 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.d.ts +3 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.js +75 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.d.ts +54 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.js +57 -0
- package/dist/server/bare/plugins/index.d.ts +3 -1
- package/dist/server/bare/plugins/index.js +3 -1
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.d.ts +12 -3
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.js +173 -172
- package/dist/server/bare/plugins/llamacpp-completion/ops/context-overflow.d.ts +29 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/context-overflow.js +65 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/finetune.js +125 -21
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-session.d.ts +154 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-session.js +448 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-state.d.ts +21 -73
- package/dist/server/bare/plugins/llamacpp-completion/ops/kv-cache-state.js +18 -101
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +36 -3
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +183 -85
- package/dist/server/bare/plugins/llamacpp-completion/transform.d.ts +10 -0
- package/dist/server/bare/plugins/llamacpp-completion/transform.js +34 -0
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.d.ts +7 -0
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +10 -1
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +42 -15
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.js +5 -1
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +8 -3
- package/dist/server/bare/plugins/onnx-ocr/plugin.js +3 -0
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +73 -244
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +68 -96
- package/dist/server/bare/plugins/sdcpp-generation/ops/diffusion.js +8 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/upscale.d.ts +3 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/upscale.js +40 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/video.d.ts +3 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/video.js +199 -0
- package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +288 -15
- package/dist/server/bare/plugins/sdcpp-generation/plugin.js +150 -7
- package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech-stream.js +2 -15
- package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech.js +2 -1
- package/dist/server/bare/plugins/tts-ggml/plugin.d.ts +75 -0
- package/dist/server/bare/plugins/tts-ggml/plugin.js +189 -0
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +47 -3
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +61 -14
- package/dist/server/bare/rag-hyperdb/index.d.ts +1 -1
- package/dist/server/bare/rag-hyperdb/index.js +1 -1
- package/dist/server/bare/rag-hyperdb/rag-operation-manager.d.ts +26 -4
- package/dist/server/bare/rag-hyperdb/rag-operation-manager.js +65 -28
- package/dist/server/bare/registry/model-config-utils.js +7 -0
- package/dist/server/bare/runtime/disposable-scope.d.ts +36 -0
- package/dist/server/bare/runtime/disposable-scope.js +69 -0
- package/dist/server/bare/runtime/index.d.ts +8 -0
- package/dist/server/bare/runtime/index.js +3 -0
- package/dist/server/bare/runtime/request-context.d.ts +49 -0
- package/dist/server/bare/runtime/request-context.js +1 -0
- package/dist/server/bare/runtime/request-id.d.ts +12 -0
- package/dist/server/bare/runtime/request-id.js +14 -0
- package/dist/server/bare/runtime/request-registry-singleton.d.ts +4 -0
- package/dist/server/bare/runtime/request-registry-singleton.js +27 -0
- package/dist/server/bare/runtime/request-registry.d.ts +136 -0
- package/dist/server/bare/runtime/request-registry.js +297 -0
- package/dist/server/bare/runtime/with-request-context.d.ts +22 -0
- package/dist/server/bare/runtime/with-request-context.js +53 -0
- package/dist/server/bare/runtime-lifecycle.js +9 -9
- package/dist/server/bare/types/addon-responses.d.ts +12 -1
- package/dist/server/env.js +4 -1
- package/dist/server/plugins/index.d.ts +1 -1
- package/dist/server/plugins/index.js +1 -1
- package/dist/server/plugins/registry.d.ts +1 -0
- package/dist/server/plugins/registry.js +5 -0
- package/dist/server/rpc/handler-registry.js +30 -7
- package/dist/server/rpc/handler-selection.d.ts +9 -0
- package/dist/server/rpc/handler-selection.js +14 -0
- package/dist/server/rpc/handler-utils.js +5 -13
- package/dist/server/rpc/handlers/cancel-delegated.js +28 -31
- package/dist/server/rpc/handlers/cancelHandler.d.ts +30 -1
- package/dist/server/rpc/handlers/cancelHandler.js +54 -22
- package/dist/server/rpc/handlers/classify.d.ts +3 -0
- package/dist/server/rpc/handlers/classify.js +4 -0
- package/dist/server/rpc/handlers/delete-cache.d.ts +9 -0
- package/dist/server/rpc/handlers/delete-cache.js +13 -15
- package/dist/server/rpc/handlers/download-asset.js +133 -40
- package/dist/server/rpc/handlers/index.d.ts +4 -0
- package/dist/server/rpc/handlers/index.js +4 -0
- package/dist/server/rpc/handlers/load-model/download-manager.d.ts +60 -2
- package/dist/server/rpc/handlers/load-model/download-manager.js +141 -8
- package/dist/server/rpc/handlers/load-model/handler.js +216 -98
- package/dist/server/rpc/handlers/load-model/http.js +3 -3
- package/dist/server/rpc/handlers/load-model/hyperdrive.js +1 -1
- package/dist/server/rpc/handlers/load-model/registry.js +1 -1
- package/dist/server/rpc/handlers/load-model/resolve-session.d.ts +20 -1
- package/dist/server/rpc/handlers/load-model/resolve-session.js +6 -5
- package/dist/server/rpc/handlers/load-model/resolve.d.ts +3 -2
- package/dist/server/rpc/handlers/load-model/resolve.js +18 -6
- package/dist/server/rpc/handlers/load-model/types.d.ts +24 -0
- package/dist/server/rpc/handlers/rag.js +133 -15
- package/dist/server/rpc/handlers/upscale-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/upscale-stream.js +4 -0
- package/dist/server/rpc/handlers/video-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/video-stream.js +4 -0
- package/dist/server/rpc/profiling/operation-metrics.js +23 -0
- package/dist/server/utils/completion-normalizer.js +8 -0
- package/dist/server/utils/config-transform.js +1 -1
- package/dist/server/utils/tools/dialect.js +4 -0
- package/dist/server/utils/tools/parser.js +16 -1
- package/dist/server/utils/tools/parsers/gemma4native.d.ts +4 -0
- package/dist/server/utils/tools/parsers/gemma4native.js +60 -0
- package/dist/server/utils/tools/parsers/qwen35.d.ts +4 -0
- package/dist/server/utils/tools/parsers/qwen35.js +120 -0
- package/dist/server/worker.js +14 -11
- package/dist/utils/aggregate-events.d.ts +9 -0
- package/dist/utils/aggregate-events.js +18 -3
- package/dist/utils/decorate-promise.d.ts +34 -0
- package/dist/utils/decorate-promise.js +35 -0
- package/dist/utils/errors-client.d.ts +18 -0
- package/dist/utils/errors-client.js +31 -0
- package/dist/utils/errors-server.d.ts +115 -2
- package/dist/utils/errors-server.js +148 -3
- package/package.json +68 -77
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +0 -490
- package/dist/server/bare/plugins/onnx-tts/plugin.js +0 -266
- package/dist/server/bare/plugins/onnx-tts/wav-helper.d.ts +0 -14
- package/dist/server/bare/plugins/onnx-tts/wav-helper.js +0 -107
- /package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech-stream.d.ts +0 -0
- /package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech.d.ts +0 -0
|
@@ -11,6 +11,11 @@ export const audioInputSchema = z.discriminatedUnion("type", [
|
|
|
11
11
|
]);
|
|
12
12
|
const transcribeBaseSchema = z.object({
|
|
13
13
|
modelId: z.string(),
|
|
14
|
+
/**
|
|
15
|
+
* Initial transcription prompt. Whisper engine only — silently
|
|
16
|
+
* ignored by the parakeet engine, which has no equivalent prompting
|
|
17
|
+
* surface in `qvac-parakeet.cpp`.
|
|
18
|
+
*/
|
|
14
19
|
prompt: z.string().optional(),
|
|
15
20
|
metadata: z.boolean().optional(),
|
|
16
21
|
});
|
|
@@ -36,8 +41,44 @@ export const transcribeSegmentSchema = z.object({
|
|
|
36
41
|
append: z.boolean(),
|
|
37
42
|
id: z.number(),
|
|
38
43
|
});
|
|
44
|
+
export const vadStateEventSchema = z.object({
|
|
45
|
+
speaking: z.boolean(),
|
|
46
|
+
probability: z.number(),
|
|
47
|
+
});
|
|
48
|
+
export const whisperEndOfTurnEventSchema = z.object({
|
|
49
|
+
source: z.literal("whisper"),
|
|
50
|
+
silenceDurationMs: z.number(),
|
|
51
|
+
});
|
|
52
|
+
export const parakeetEndOfTurnEventSchema = z.object({
|
|
53
|
+
source: z.literal("parakeet"),
|
|
54
|
+
});
|
|
55
|
+
const endOfTurnDiscriminatedSchema = z.discriminatedUnion("source", [
|
|
56
|
+
whisperEndOfTurnEventSchema,
|
|
57
|
+
parakeetEndOfTurnEventSchema,
|
|
58
|
+
]);
|
|
59
|
+
/** Legacy whisper wire frames omitted `source` and only sent `silenceDurationMs`. */
|
|
60
|
+
function normalizeEndOfTurnWire(value) {
|
|
61
|
+
if (typeof value === "object" &&
|
|
62
|
+
value !== null &&
|
|
63
|
+
!("source" in value) &&
|
|
64
|
+
typeof value.silenceDurationMs ===
|
|
65
|
+
"number") {
|
|
66
|
+
return {
|
|
67
|
+
source: "whisper",
|
|
68
|
+
silenceDurationMs: value
|
|
69
|
+
.silenceDurationMs,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
export const endOfTurnEventSchema = z.preprocess(normalizeEndOfTurnWire, endOfTurnDiscriminatedSchema);
|
|
39
75
|
export const transcribeRequestSchema = transcribeParamsSchema.extend({
|
|
40
76
|
type: z.literal("transcribe"),
|
|
77
|
+
requestId: z
|
|
78
|
+
.string()
|
|
79
|
+
.min(1)
|
|
80
|
+
.optional()
|
|
81
|
+
.describe("Stable identifier for this in-flight transcription, generated by the client at call time. Surfaces on the registry so callers can target it with `cancel({ requestId })`. Optional on the wire — the server falls back to a server-generated id when the field is missing."),
|
|
41
82
|
});
|
|
42
83
|
const transcriptionResultBase = z.object({
|
|
43
84
|
text: z.string().optional(),
|
|
@@ -45,12 +86,52 @@ const transcriptionResultBase = z.object({
|
|
|
45
86
|
stats: transcribeStatsSchema.optional(),
|
|
46
87
|
error: z.string().optional(),
|
|
47
88
|
segment: transcribeSegmentSchema.optional(),
|
|
89
|
+
vad: vadStateEventSchema.optional(),
|
|
90
|
+
endOfTurn: endOfTurnEventSchema.optional(),
|
|
48
91
|
});
|
|
49
92
|
export const transcribeResponseSchema = transcriptionResultBase.extend({
|
|
50
93
|
type: z.literal("transcribe"),
|
|
51
94
|
});
|
|
95
|
+
/**
|
|
96
|
+
* Per-call overrides for parakeet's duplex streaming session.
|
|
97
|
+
*
|
|
98
|
+
* Each field maps to its `streaming*`-prefixed counterpart in
|
|
99
|
+
* `parakeetConfig` (see `parakeetRuntimeConfigSchema`). The `streaming`
|
|
100
|
+
* prefix is intentionally dropped here because every field on this
|
|
101
|
+
* object is already namespaced under the `parakeetStreamingConfig`
|
|
102
|
+
* field of `transcribeStream({ ... })`. Any field omitted falls back
|
|
103
|
+
* to the load-time value.
|
|
104
|
+
*/
|
|
105
|
+
export const parakeetStreamingRunConfigSchema = z.object({
|
|
106
|
+
chunkMs: z.number().int().positive().optional(),
|
|
107
|
+
historyMs: z.number().int().positive().optional(),
|
|
108
|
+
leftContextMs: z.number().int().nonnegative().optional(),
|
|
109
|
+
rightLookaheadMs: z.number().int().nonnegative().optional(),
|
|
110
|
+
emitPartials: z.boolean().optional(),
|
|
111
|
+
emitEnergyVad: z.boolean().optional(),
|
|
112
|
+
spkCacheEnable: z.boolean().optional(),
|
|
113
|
+
spkCacheLen: z.number().int().positive().optional(),
|
|
114
|
+
fifoLen: z.number().int().positive().optional(),
|
|
115
|
+
chunkLeftContextMs: z.number().int().nonnegative().optional(),
|
|
116
|
+
chunkRightContextMs: z.number().int().nonnegative().optional(),
|
|
117
|
+
spkCacheUpdatePeriod: z.number().int().positive().optional(),
|
|
118
|
+
});
|
|
52
119
|
export const transcribeStreamRequestSchema = transcribeBaseSchema.extend({
|
|
53
120
|
type: z.literal("transcribeStream"),
|
|
121
|
+
emitVadEvents: z.boolean().optional(),
|
|
122
|
+
endOfTurnSilenceMs: z
|
|
123
|
+
.number()
|
|
124
|
+
.int()
|
|
125
|
+
.nonnegative()
|
|
126
|
+
.optional()
|
|
127
|
+
.describe("Silence (ms) before an endOfTurn event fires. 0 or unset disables end-of-turn detection entirely. Whisper engine only."),
|
|
128
|
+
vadRunIntervalMs: z.number().int().positive().optional(),
|
|
129
|
+
parakeetStreamingConfig: parakeetStreamingRunConfigSchema.optional(),
|
|
130
|
+
requestId: z
|
|
131
|
+
.string()
|
|
132
|
+
.min(1)
|
|
133
|
+
.optional()
|
|
134
|
+
.describe("Stable identifier for this in-flight duplex transcription, generated by the client at call time. Surfaces on the registry so callers can target it with `cancel({ requestId })`. Optional on the wire — the server falls back to a server-generated id when the field is missing."),
|
|
54
135
|
});
|
|
55
136
|
export const transcribeStreamResponseSchema = transcriptionResultBase.extend({
|
|
56
137
|
type: z.literal("transcribeStream"),
|
|
@@ -39,6 +39,7 @@ export declare const translateRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
39
39
|
nmt: "nmt";
|
|
40
40
|
}>;
|
|
41
41
|
type: z.ZodLiteral<"translate">;
|
|
42
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
42
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
44
|
modelId: z.ZodString;
|
|
44
45
|
text: z.ZodString;
|
|
@@ -51,6 +52,7 @@ export declare const translateRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
51
52
|
to: z.ZodString;
|
|
52
53
|
context: z.ZodOptional<z.ZodString>;
|
|
53
54
|
type: z.ZodLiteral<"translate">;
|
|
55
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
54
56
|
}, z.core.$strip>]>;
|
|
55
57
|
export declare const translateServerParamsSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
56
58
|
modelId: z.ZodString;
|
|
@@ -77,9 +77,20 @@ export const translationStatsSchema = z.object({
|
|
|
77
77
|
.optional()
|
|
78
78
|
.describe("Tokens served from the KV cache during LLM translation."),
|
|
79
79
|
});
|
|
80
|
+
const translateRequestIdField = z
|
|
81
|
+
.string()
|
|
82
|
+
.min(1)
|
|
83
|
+
.optional()
|
|
84
|
+
.describe("Stable identifier for this in-flight translation, generated by the client at call time. Surfaces on the registry so callers can target it with `cancel({ requestId })`. Optional on the wire — the server falls back to a server-generated id when the field is missing.");
|
|
80
85
|
export const translateRequestSchema = z.union([
|
|
81
|
-
translateParamsNmtSchema.extend({
|
|
82
|
-
|
|
86
|
+
translateParamsNmtSchema.extend({
|
|
87
|
+
type: z.literal("translate"),
|
|
88
|
+
requestId: translateRequestIdField,
|
|
89
|
+
}),
|
|
90
|
+
translateParamsLlmSchema.extend({
|
|
91
|
+
type: z.literal("translate"),
|
|
92
|
+
requestId: translateRequestIdField,
|
|
93
|
+
}),
|
|
83
94
|
]);
|
|
84
95
|
// Valid model types for translation (aliases and canonical)
|
|
85
96
|
const validTranslationModelTypes = [
|
|
@@ -141,21 +141,26 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
141
141
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
142
142
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
143
143
|
embeddings: "embeddings";
|
|
144
|
+
diffusion: "diffusion";
|
|
145
|
+
tts: "tts";
|
|
146
|
+
ocr: "ocr";
|
|
147
|
+
vla: "vla";
|
|
144
148
|
"llamacpp-completion": "llamacpp-completion";
|
|
145
149
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
146
150
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
147
151
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
148
152
|
"onnx-tts": "onnx-tts";
|
|
153
|
+
"tts-ggml": "tts-ggml";
|
|
149
154
|
"parakeet-transcription": "parakeet-transcription";
|
|
150
155
|
"onnx-ocr": "onnx-ocr";
|
|
151
156
|
"sdcpp-generation": "sdcpp-generation";
|
|
157
|
+
"ggml-vla": "ggml-vla";
|
|
158
|
+
"ggml-classification": "ggml-classification";
|
|
152
159
|
llm: "llm";
|
|
153
160
|
whisper: "whisper";
|
|
154
161
|
nmt: "nmt";
|
|
155
162
|
parakeet: "parakeet";
|
|
156
|
-
|
|
157
|
-
ocr: "ocr";
|
|
158
|
-
diffusion: "diffusion";
|
|
163
|
+
classification: "classification";
|
|
159
164
|
}>, z.ZodLiteral<"vad">]>>;
|
|
160
165
|
}, z.core.$strip>]>>;
|
|
161
166
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -171,21 +176,26 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
171
176
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
172
177
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
173
178
|
embeddings: "embeddings";
|
|
179
|
+
diffusion: "diffusion";
|
|
180
|
+
tts: "tts";
|
|
181
|
+
ocr: "ocr";
|
|
182
|
+
vla: "vla";
|
|
174
183
|
"llamacpp-completion": "llamacpp-completion";
|
|
175
184
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
176
185
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
177
186
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
178
187
|
"onnx-tts": "onnx-tts";
|
|
188
|
+
"tts-ggml": "tts-ggml";
|
|
179
189
|
"parakeet-transcription": "parakeet-transcription";
|
|
180
190
|
"onnx-ocr": "onnx-ocr";
|
|
181
191
|
"sdcpp-generation": "sdcpp-generation";
|
|
192
|
+
"ggml-vla": "ggml-vla";
|
|
193
|
+
"ggml-classification": "ggml-classification";
|
|
182
194
|
llm: "llm";
|
|
183
195
|
whisper: "whisper";
|
|
184
196
|
nmt: "nmt";
|
|
185
197
|
parakeet: "parakeet";
|
|
186
|
-
|
|
187
|
-
ocr: "ocr";
|
|
188
|
-
diffusion: "diffusion";
|
|
198
|
+
classification: "classification";
|
|
189
199
|
}>, z.ZodLiteral<"vad">]>>;
|
|
190
200
|
}, z.core.$strip>]>>;
|
|
191
201
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -214,21 +224,26 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
214
224
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
215
225
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
216
226
|
embeddings: "embeddings";
|
|
227
|
+
diffusion: "diffusion";
|
|
228
|
+
tts: "tts";
|
|
229
|
+
ocr: "ocr";
|
|
230
|
+
vla: "vla";
|
|
217
231
|
"llamacpp-completion": "llamacpp-completion";
|
|
218
232
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
219
233
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
220
234
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
221
235
|
"onnx-tts": "onnx-tts";
|
|
236
|
+
"tts-ggml": "tts-ggml";
|
|
222
237
|
"parakeet-transcription": "parakeet-transcription";
|
|
223
238
|
"onnx-ocr": "onnx-ocr";
|
|
224
239
|
"sdcpp-generation": "sdcpp-generation";
|
|
240
|
+
"ggml-vla": "ggml-vla";
|
|
241
|
+
"ggml-classification": "ggml-classification";
|
|
225
242
|
llm: "llm";
|
|
226
243
|
whisper: "whisper";
|
|
227
244
|
nmt: "nmt";
|
|
228
245
|
parakeet: "parakeet";
|
|
229
|
-
|
|
230
|
-
ocr: "ocr";
|
|
231
|
-
diffusion: "diffusion";
|
|
246
|
+
classification: "classification";
|
|
232
247
|
}>, z.ZodLiteral<"vad">]>>;
|
|
233
248
|
}, z.core.$strip>]>;
|
|
234
249
|
srcVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -244,21 +259,26 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
244
259
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
245
260
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
246
261
|
embeddings: "embeddings";
|
|
262
|
+
diffusion: "diffusion";
|
|
263
|
+
tts: "tts";
|
|
264
|
+
ocr: "ocr";
|
|
265
|
+
vla: "vla";
|
|
247
266
|
"llamacpp-completion": "llamacpp-completion";
|
|
248
267
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
249
268
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
250
269
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
251
270
|
"onnx-tts": "onnx-tts";
|
|
271
|
+
"tts-ggml": "tts-ggml";
|
|
252
272
|
"parakeet-transcription": "parakeet-transcription";
|
|
253
273
|
"onnx-ocr": "onnx-ocr";
|
|
254
274
|
"sdcpp-generation": "sdcpp-generation";
|
|
275
|
+
"ggml-vla": "ggml-vla";
|
|
276
|
+
"ggml-classification": "ggml-classification";
|
|
255
277
|
llm: "llm";
|
|
256
278
|
whisper: "whisper";
|
|
257
279
|
nmt: "nmt";
|
|
258
280
|
parakeet: "parakeet";
|
|
259
|
-
|
|
260
|
-
ocr: "ocr";
|
|
261
|
-
diffusion: "diffusion";
|
|
281
|
+
classification: "classification";
|
|
262
282
|
}>, z.ZodLiteral<"vad">]>>;
|
|
263
283
|
}, z.core.$strip>]>>;
|
|
264
284
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -274,21 +294,26 @@ export declare const nmtConfigBaseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
274
294
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
275
295
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
276
296
|
embeddings: "embeddings";
|
|
297
|
+
diffusion: "diffusion";
|
|
298
|
+
tts: "tts";
|
|
299
|
+
ocr: "ocr";
|
|
300
|
+
vla: "vla";
|
|
277
301
|
"llamacpp-completion": "llamacpp-completion";
|
|
278
302
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
279
303
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
280
304
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
281
305
|
"onnx-tts": "onnx-tts";
|
|
306
|
+
"tts-ggml": "tts-ggml";
|
|
282
307
|
"parakeet-transcription": "parakeet-transcription";
|
|
283
308
|
"onnx-ocr": "onnx-ocr";
|
|
284
309
|
"sdcpp-generation": "sdcpp-generation";
|
|
310
|
+
"ggml-vla": "ggml-vla";
|
|
311
|
+
"ggml-classification": "ggml-classification";
|
|
285
312
|
llm: "llm";
|
|
286
313
|
whisper: "whisper";
|
|
287
314
|
nmt: "nmt";
|
|
288
315
|
parakeet: "parakeet";
|
|
289
|
-
|
|
290
|
-
ocr: "ocr";
|
|
291
|
-
diffusion: "diffusion";
|
|
316
|
+
classification: "classification";
|
|
292
317
|
}>, z.ZodLiteral<"vad">]>>;
|
|
293
318
|
}, z.core.$strip>]>>;
|
|
294
319
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -497,21 +522,26 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
497
522
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
498
523
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
499
524
|
embeddings: "embeddings";
|
|
525
|
+
diffusion: "diffusion";
|
|
526
|
+
tts: "tts";
|
|
527
|
+
ocr: "ocr";
|
|
528
|
+
vla: "vla";
|
|
500
529
|
"llamacpp-completion": "llamacpp-completion";
|
|
501
530
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
502
531
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
503
532
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
504
533
|
"onnx-tts": "onnx-tts";
|
|
534
|
+
"tts-ggml": "tts-ggml";
|
|
505
535
|
"parakeet-transcription": "parakeet-transcription";
|
|
506
536
|
"onnx-ocr": "onnx-ocr";
|
|
507
537
|
"sdcpp-generation": "sdcpp-generation";
|
|
538
|
+
"ggml-vla": "ggml-vla";
|
|
539
|
+
"ggml-classification": "ggml-classification";
|
|
508
540
|
llm: "llm";
|
|
509
541
|
whisper: "whisper";
|
|
510
542
|
nmt: "nmt";
|
|
511
543
|
parakeet: "parakeet";
|
|
512
|
-
|
|
513
|
-
ocr: "ocr";
|
|
514
|
-
diffusion: "diffusion";
|
|
544
|
+
classification: "classification";
|
|
515
545
|
}>, z.ZodLiteral<"vad">]>>;
|
|
516
546
|
}, z.core.$strip>]>>;
|
|
517
547
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -527,21 +557,26 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
527
557
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
528
558
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
529
559
|
embeddings: "embeddings";
|
|
560
|
+
diffusion: "diffusion";
|
|
561
|
+
tts: "tts";
|
|
562
|
+
ocr: "ocr";
|
|
563
|
+
vla: "vla";
|
|
530
564
|
"llamacpp-completion": "llamacpp-completion";
|
|
531
565
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
532
566
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
533
567
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
534
568
|
"onnx-tts": "onnx-tts";
|
|
569
|
+
"tts-ggml": "tts-ggml";
|
|
535
570
|
"parakeet-transcription": "parakeet-transcription";
|
|
536
571
|
"onnx-ocr": "onnx-ocr";
|
|
537
572
|
"sdcpp-generation": "sdcpp-generation";
|
|
573
|
+
"ggml-vla": "ggml-vla";
|
|
574
|
+
"ggml-classification": "ggml-classification";
|
|
538
575
|
llm: "llm";
|
|
539
576
|
whisper: "whisper";
|
|
540
577
|
nmt: "nmt";
|
|
541
578
|
parakeet: "parakeet";
|
|
542
|
-
|
|
543
|
-
ocr: "ocr";
|
|
544
|
-
diffusion: "diffusion";
|
|
579
|
+
classification: "classification";
|
|
545
580
|
}>, z.ZodLiteral<"vad">]>>;
|
|
546
581
|
}, z.core.$strip>]>>;
|
|
547
582
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -570,21 +605,26 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
570
605
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
571
606
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
572
607
|
embeddings: "embeddings";
|
|
608
|
+
diffusion: "diffusion";
|
|
609
|
+
tts: "tts";
|
|
610
|
+
ocr: "ocr";
|
|
611
|
+
vla: "vla";
|
|
573
612
|
"llamacpp-completion": "llamacpp-completion";
|
|
574
613
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
575
614
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
576
615
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
577
616
|
"onnx-tts": "onnx-tts";
|
|
617
|
+
"tts-ggml": "tts-ggml";
|
|
578
618
|
"parakeet-transcription": "parakeet-transcription";
|
|
579
619
|
"onnx-ocr": "onnx-ocr";
|
|
580
620
|
"sdcpp-generation": "sdcpp-generation";
|
|
621
|
+
"ggml-vla": "ggml-vla";
|
|
622
|
+
"ggml-classification": "ggml-classification";
|
|
581
623
|
llm: "llm";
|
|
582
624
|
whisper: "whisper";
|
|
583
625
|
nmt: "nmt";
|
|
584
626
|
parakeet: "parakeet";
|
|
585
|
-
|
|
586
|
-
ocr: "ocr";
|
|
587
|
-
diffusion: "diffusion";
|
|
627
|
+
classification: "classification";
|
|
588
628
|
}>, z.ZodLiteral<"vad">]>>;
|
|
589
629
|
}, z.core.$strip>]>;
|
|
590
630
|
srcVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -600,21 +640,26 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
600
640
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
601
641
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
602
642
|
embeddings: "embeddings";
|
|
643
|
+
diffusion: "diffusion";
|
|
644
|
+
tts: "tts";
|
|
645
|
+
ocr: "ocr";
|
|
646
|
+
vla: "vla";
|
|
603
647
|
"llamacpp-completion": "llamacpp-completion";
|
|
604
648
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
605
649
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
606
650
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
607
651
|
"onnx-tts": "onnx-tts";
|
|
652
|
+
"tts-ggml": "tts-ggml";
|
|
608
653
|
"parakeet-transcription": "parakeet-transcription";
|
|
609
654
|
"onnx-ocr": "onnx-ocr";
|
|
610
655
|
"sdcpp-generation": "sdcpp-generation";
|
|
656
|
+
"ggml-vla": "ggml-vla";
|
|
657
|
+
"ggml-classification": "ggml-classification";
|
|
611
658
|
llm: "llm";
|
|
612
659
|
whisper: "whisper";
|
|
613
660
|
nmt: "nmt";
|
|
614
661
|
parakeet: "parakeet";
|
|
615
|
-
|
|
616
|
-
ocr: "ocr";
|
|
617
|
-
diffusion: "diffusion";
|
|
662
|
+
classification: "classification";
|
|
618
663
|
}>, z.ZodLiteral<"vad">]>>;
|
|
619
664
|
}, z.core.$strip>]>>;
|
|
620
665
|
dstVocabSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -630,21 +675,26 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
630
675
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
631
676
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
632
677
|
embeddings: "embeddings";
|
|
678
|
+
diffusion: "diffusion";
|
|
679
|
+
tts: "tts";
|
|
680
|
+
ocr: "ocr";
|
|
681
|
+
vla: "vla";
|
|
633
682
|
"llamacpp-completion": "llamacpp-completion";
|
|
634
683
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
635
684
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
636
685
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
637
686
|
"onnx-tts": "onnx-tts";
|
|
687
|
+
"tts-ggml": "tts-ggml";
|
|
638
688
|
"parakeet-transcription": "parakeet-transcription";
|
|
639
689
|
"onnx-ocr": "onnx-ocr";
|
|
640
690
|
"sdcpp-generation": "sdcpp-generation";
|
|
691
|
+
"ggml-vla": "ggml-vla";
|
|
692
|
+
"ggml-classification": "ggml-classification";
|
|
641
693
|
llm: "llm";
|
|
642
694
|
whisper: "whisper";
|
|
643
695
|
nmt: "nmt";
|
|
644
696
|
parakeet: "parakeet";
|
|
645
|
-
|
|
646
|
-
ocr: "ocr";
|
|
647
|
-
diffusion: "diffusion";
|
|
697
|
+
classification: "classification";
|
|
648
698
|
}>, z.ZodLiteral<"vad">]>>;
|
|
649
699
|
}, z.core.$strip>]>>;
|
|
650
700
|
normalize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -742,7 +792,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
742
792
|
engine?: string | undefined;
|
|
743
793
|
expectedSize?: number | undefined;
|
|
744
794
|
sha256Checksum?: string | undefined;
|
|
745
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
795
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
746
796
|
} | undefined;
|
|
747
797
|
dstVocabSrc?: string | {
|
|
748
798
|
src: string;
|
|
@@ -755,7 +805,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
755
805
|
engine?: string | undefined;
|
|
756
806
|
expectedSize?: number | undefined;
|
|
757
807
|
sha256Checksum?: string | undefined;
|
|
758
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
808
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
759
809
|
} | undefined;
|
|
760
810
|
normalize?: number | undefined;
|
|
761
811
|
pivotModel?: {
|
|
@@ -770,7 +820,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
770
820
|
engine?: string | undefined;
|
|
771
821
|
expectedSize?: number | undefined;
|
|
772
822
|
sha256Checksum?: string | undefined;
|
|
773
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
823
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
774
824
|
};
|
|
775
825
|
mode?: "full" | undefined;
|
|
776
826
|
beamsize?: number | undefined;
|
|
@@ -792,7 +842,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
792
842
|
engine?: string | undefined;
|
|
793
843
|
expectedSize?: number | undefined;
|
|
794
844
|
sha256Checksum?: string | undefined;
|
|
795
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
845
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
796
846
|
} | undefined;
|
|
797
847
|
dstVocabSrc?: string | {
|
|
798
848
|
src: string;
|
|
@@ -805,7 +855,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
805
855
|
engine?: string | undefined;
|
|
806
856
|
expectedSize?: number | undefined;
|
|
807
857
|
sha256Checksum?: string | undefined;
|
|
808
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
858
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
809
859
|
} | undefined;
|
|
810
860
|
normalize?: number | undefined;
|
|
811
861
|
} | undefined;
|
|
@@ -846,7 +896,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
846
896
|
engine?: string | undefined;
|
|
847
897
|
expectedSize?: number | undefined;
|
|
848
898
|
sha256Checksum?: string | undefined;
|
|
849
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
899
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
850
900
|
} | undefined;
|
|
851
901
|
dstVocabSrc?: string | {
|
|
852
902
|
src: string;
|
|
@@ -859,7 +909,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
859
909
|
engine?: string | undefined;
|
|
860
910
|
expectedSize?: number | undefined;
|
|
861
911
|
sha256Checksum?: string | undefined;
|
|
862
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
912
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
863
913
|
} | undefined;
|
|
864
914
|
normalize?: number | undefined;
|
|
865
915
|
pivotModel?: {
|
|
@@ -874,7 +924,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
874
924
|
engine?: string | undefined;
|
|
875
925
|
expectedSize?: number | undefined;
|
|
876
926
|
sha256Checksum?: string | undefined;
|
|
877
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
927
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
878
928
|
};
|
|
879
929
|
mode?: "full" | undefined;
|
|
880
930
|
beamsize?: number | undefined;
|
|
@@ -896,7 +946,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
896
946
|
engine?: string | undefined;
|
|
897
947
|
expectedSize?: number | undefined;
|
|
898
948
|
sha256Checksum?: string | undefined;
|
|
899
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
949
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
900
950
|
} | undefined;
|
|
901
951
|
dstVocabSrc?: string | {
|
|
902
952
|
src: string;
|
|
@@ -909,7 +959,7 @@ export declare const nmtConfigSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
909
959
|
engine?: string | undefined;
|
|
910
960
|
expectedSize?: number | undefined;
|
|
911
961
|
sha256Checksum?: string | undefined;
|
|
912
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
962
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
913
963
|
} | undefined;
|
|
914
964
|
normalize?: number | undefined;
|
|
915
965
|
} | undefined;
|
|
@@ -2,11 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const unloadModelParamsSchema: z.ZodObject<{
|
|
3
3
|
modelId: z.ZodString;
|
|
4
4
|
clearStorage: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
autoClose: z.ZodOptional<z.ZodBoolean>;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
export declare const unloadModelRequestSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"unloadModel">;
|
|
7
9
|
modelId: z.ZodString;
|
|
8
10
|
clearStorage: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
type: z.ZodLiteral<"unloadModel">;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const unloadModelResponseSchema: z.ZodObject<{
|
|
12
13
|
type: z.ZodLiteral<"unloadModel">;
|
|
@@ -2,9 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
export const unloadModelParamsSchema = z.object({
|
|
3
3
|
modelId: z.string(),
|
|
4
4
|
clearStorage: z.boolean().default(false),
|
|
5
|
+
autoClose: z.boolean().optional(),
|
|
5
6
|
});
|
|
6
|
-
export const unloadModelRequestSchema =
|
|
7
|
+
export const unloadModelRequestSchema = z.object({
|
|
7
8
|
type: z.literal("unloadModel"),
|
|
9
|
+
modelId: z.string(),
|
|
10
|
+
clearStorage: z.boolean().default(false),
|
|
8
11
|
});
|
|
9
12
|
export const unloadModelResponseSchema = z.object({
|
|
10
13
|
type: z.literal("unloadModel"),
|