@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
package/dist/schemas/error.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { QvacErrorBase } from "@qvac/error";
|
|
3
|
+
/**
|
|
4
|
+
* Wire shape for errors thrown across the RPC boundary. The fields are
|
|
5
|
+
* the union of (a) the legacy `QvacErrorBase` serialisation (`name`,
|
|
6
|
+
* `code`, `message`, `stack`, `cause`, `timestamp`) and (b) the new
|
|
7
|
+
* `typedFields` map (0.11.0+) carrying per-class structured data the
|
|
8
|
+
* client-side reconstructor uses to rebuild the original typed error.
|
|
9
|
+
*
|
|
10
|
+
* `typedFields` is opaque on the wire — `z.unknown()` — and the
|
|
11
|
+
* per-class reconstructor in `client/rpc/rpc-error.ts` casts each
|
|
12
|
+
* member at the boundary. The single-map shape keeps the schema
|
|
13
|
+
* compact regardless of how many typed-error classes the SDK
|
|
14
|
+
* eventually surfaces across RPC. New typed-error classes that need
|
|
15
|
+
* cross-RPC reconstruction add a `toErrorResponseFields()` method on
|
|
16
|
+
* the server side and a row to the reconstructor map on the client
|
|
17
|
+
* side; the schema itself doesn't change.
|
|
18
|
+
*/
|
|
3
19
|
export const errorResponseSchema = z.object({
|
|
4
20
|
type: z.literal("error"),
|
|
5
21
|
message: z.string(),
|
|
@@ -8,14 +24,22 @@ export const errorResponseSchema = z.object({
|
|
|
8
24
|
name: z.string().optional(),
|
|
9
25
|
code: z.number().optional(),
|
|
10
26
|
cause: z.unknown().optional(),
|
|
27
|
+
typedFields: z.record(z.string(), z.unknown()).optional(),
|
|
11
28
|
});
|
|
29
|
+
function hasTypedFields(error) {
|
|
30
|
+
return (error !== null &&
|
|
31
|
+
typeof error === "object" &&
|
|
32
|
+
"toErrorResponseFields" in error &&
|
|
33
|
+
typeof error
|
|
34
|
+
.toErrorResponseFields === "function");
|
|
35
|
+
}
|
|
12
36
|
function isQvacError(error) {
|
|
13
37
|
return error instanceof QvacErrorBase;
|
|
14
38
|
}
|
|
15
39
|
export function createErrorResponse(error) {
|
|
16
40
|
if (isQvacError(error)) {
|
|
17
41
|
const qvacData = error.toJSON();
|
|
18
|
-
|
|
42
|
+
const response = {
|
|
19
43
|
type: "error",
|
|
20
44
|
name: qvacData.name,
|
|
21
45
|
code: qvacData.code,
|
|
@@ -23,6 +47,10 @@ export function createErrorResponse(error) {
|
|
|
23
47
|
stack: qvacData.stack,
|
|
24
48
|
timestamp: new Date().toISOString(),
|
|
25
49
|
};
|
|
50
|
+
if (hasTypedFields(error)) {
|
|
51
|
+
response.typedFields = error.toErrorResponseFields();
|
|
52
|
+
}
|
|
53
|
+
return response;
|
|
26
54
|
}
|
|
27
55
|
const message = error instanceof Error ? error.message : String(error);
|
|
28
56
|
const stack = error instanceof Error ? error.stack : undefined;
|
|
@@ -336,6 +336,7 @@ export declare const finetuneRunRequestSchema: z.ZodObject<{
|
|
|
336
336
|
resume: "resume";
|
|
337
337
|
}>>;
|
|
338
338
|
withProgress: z.ZodOptional<z.ZodBoolean>;
|
|
339
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
339
340
|
}, z.core.$strict>;
|
|
340
341
|
export declare const finetuneGetStateRequestSchema: z.ZodObject<{
|
|
341
342
|
modelId: z.ZodString;
|
|
@@ -466,6 +467,7 @@ export declare const finetuneRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
466
467
|
resume: "resume";
|
|
467
468
|
}>>;
|
|
468
469
|
withProgress: z.ZodOptional<z.ZodBoolean>;
|
|
470
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
469
471
|
}, z.core.$strict>, z.ZodObject<{
|
|
470
472
|
modelId: z.ZodString;
|
|
471
473
|
options: z.ZodObject<{
|
package/dist/schemas/finetune.js
CHANGED
|
@@ -96,6 +96,11 @@ export const finetuneRunRequestSchema = finetuneRunParamsSchemaBase
|
|
|
96
96
|
type: z.literal("finetune"),
|
|
97
97
|
operation: z.enum(["start", "resume"]).optional(),
|
|
98
98
|
withProgress: z.boolean().optional(),
|
|
99
|
+
requestId: z
|
|
100
|
+
.string()
|
|
101
|
+
.min(1)
|
|
102
|
+
.optional()
|
|
103
|
+
.describe("Stable identifier for this in-flight finetune, 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."),
|
|
99
104
|
})
|
|
100
105
|
.strict();
|
|
101
106
|
export const finetuneGetStateRequestSchema = finetuneRunParamsSchemaBase
|
|
@@ -36,13 +36,15 @@ export declare const modelInfoSchema: z.ZodObject<{
|
|
|
36
36
|
sha256Checksum: z.ZodString;
|
|
37
37
|
addon: z.ZodEnum<{
|
|
38
38
|
embeddings: "embeddings";
|
|
39
|
+
diffusion: "diffusion";
|
|
40
|
+
tts: "tts";
|
|
41
|
+
ocr: "ocr";
|
|
42
|
+
vla: "vla";
|
|
39
43
|
llm: "llm";
|
|
40
44
|
whisper: "whisper";
|
|
41
45
|
nmt: "nmt";
|
|
42
46
|
parakeet: "parakeet";
|
|
43
|
-
|
|
44
|
-
ocr: "ocr";
|
|
45
|
-
diffusion: "diffusion";
|
|
47
|
+
classification: "classification";
|
|
46
48
|
vad: "vad";
|
|
47
49
|
other: "other";
|
|
48
50
|
}>;
|
|
@@ -83,13 +85,15 @@ export declare const getModelInfoResponseSchema: z.ZodObject<{
|
|
|
83
85
|
sha256Checksum: z.ZodString;
|
|
84
86
|
addon: z.ZodEnum<{
|
|
85
87
|
embeddings: "embeddings";
|
|
88
|
+
diffusion: "diffusion";
|
|
89
|
+
tts: "tts";
|
|
90
|
+
ocr: "ocr";
|
|
91
|
+
vla: "vla";
|
|
86
92
|
llm: "llm";
|
|
87
93
|
whisper: "whisper";
|
|
88
94
|
nmt: "nmt";
|
|
89
95
|
parakeet: "parakeet";
|
|
90
|
-
|
|
91
|
-
ocr: "ocr";
|
|
92
|
-
diffusion: "diffusion";
|
|
96
|
+
classification: "classification";
|
|
93
97
|
vad: "vad";
|
|
94
98
|
other: "other";
|
|
95
99
|
}>;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export * from "./error";
|
|
|
26
26
|
export * from "./rag";
|
|
27
27
|
export * from "./ocr";
|
|
28
28
|
export * from "./sdcpp-config";
|
|
29
|
+
export * from "./vla";
|
|
30
|
+
export * from "./classification";
|
|
29
31
|
export * from "./shard";
|
|
30
32
|
export * from "./suspend";
|
|
31
33
|
export * from "./resume";
|
|
@@ -33,6 +35,7 @@ export * from "./state";
|
|
|
33
35
|
export { SDK_CLIENT_ERROR_CODES } from "./sdk-errors-client";
|
|
34
36
|
export { SDK_SERVER_ERROR_CODES } from "./sdk-errors-server";
|
|
35
37
|
export { REGISTRY_ERROR_CODES } from "./sdk-errors-registry";
|
|
38
|
+
export { ERR_CODES as RAG_ERROR_CODES } from "@qvac/rag/errors";
|
|
36
39
|
export { qvacConfigSchema, deviceMatchSchema, deviceConfigDefaultsSchema, devicePatternSchema, type QvacConfig, type DeviceMatch, type DeviceConfigDefaults, type DevicePattern, } from "./sdk-config";
|
|
37
40
|
export { PROFILING_KEY, PROFILING_TRAILER_KEY, DELEGATION_BREAKDOWN_KEY, OPERATION_EVENT_KEY, MODEL_EXECUTION_KEY, profilerModeSchema, serverBreakdownSchema, delegationBreakdownSchema, operationEventSchema, profilingRequestMetaSchema, profilingResponseMetaSchema, perCallProfilingSchema, type ProfilerMode, type ServerBreakdown, type DelegationBreakdown, type OperationEvent, type ProfilingRequestMeta, type ProfilingResponseMeta, type PerCallProfiling, } from "./profiling";
|
|
38
41
|
export { runtimeContextSchema, type RuntimeContext } from "./runtime-context";
|
package/dist/schemas/index.js
CHANGED
|
@@ -27,6 +27,8 @@ export * from "./error.js";
|
|
|
27
27
|
export * from "./rag.js";
|
|
28
28
|
export * from "./ocr.js";
|
|
29
29
|
export * from "./sdcpp-config.js";
|
|
30
|
+
export * from "./vla.js";
|
|
31
|
+
export * from "./classification.js";
|
|
30
32
|
export * from "./shard.js";
|
|
31
33
|
export * from "./suspend.js";
|
|
32
34
|
export * from "./resume.js";
|
|
@@ -34,6 +36,7 @@ export * from "./state.js";
|
|
|
34
36
|
export { SDK_CLIENT_ERROR_CODES } from "./sdk-errors-client.js";
|
|
35
37
|
export { SDK_SERVER_ERROR_CODES } from "./sdk-errors-server.js";
|
|
36
38
|
export { REGISTRY_ERROR_CODES } from "./sdk-errors-registry.js";
|
|
39
|
+
export { ERR_CODES as RAG_ERROR_CODES } from "@qvac/rag/errors.js";
|
|
37
40
|
export { qvacConfigSchema, deviceMatchSchema, deviceConfigDefaultsSchema, devicePatternSchema, } from "./sdk-config.js";
|
|
38
41
|
export { PROFILING_KEY, PROFILING_TRAILER_KEY, DELEGATION_BREAKDOWN_KEY, OPERATION_EVENT_KEY, MODEL_EXECUTION_KEY, profilerModeSchema, serverBreakdownSchema, delegationBreakdownSchema, operationEventSchema, profilingRequestMetaSchema, profilingResponseMetaSchema, perCallProfilingSchema, } from "./profiling.js";
|
|
39
42
|
export { runtimeContextSchema } from "./runtime-context.js";
|
|
@@ -30,7 +30,18 @@ export declare const llmConfigBaseSchema: z.ZodObject<{
|
|
|
30
30
|
}>>;
|
|
31
31
|
"cache-type-k": z.ZodOptional<z.ZodString>;
|
|
32
32
|
"cache-type-v": z.ZodOptional<z.ZodString>;
|
|
33
|
+
"main-gpu": z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
|
|
34
|
+
integrated: "integrated";
|
|
35
|
+
dedicated: "dedicated";
|
|
36
|
+
}>]>>;
|
|
37
|
+
"split-mode": z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
none: "none";
|
|
39
|
+
layer: "layer";
|
|
40
|
+
row: "row";
|
|
41
|
+
}>>;
|
|
42
|
+
"tensor-split": z.ZodOptional<z.ZodString>;
|
|
33
43
|
openclCacheDir: z.ZodOptional<z.ZodString>;
|
|
44
|
+
reasoning_budget: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<-1>, z.ZodLiteral<0>]>>;
|
|
34
45
|
projectionModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
35
46
|
src: z.ZodString;
|
|
36
47
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -44,21 +55,26 @@ export declare const llmConfigBaseSchema: z.ZodObject<{
|
|
|
44
55
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
45
56
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
46
57
|
embeddings: "embeddings";
|
|
58
|
+
diffusion: "diffusion";
|
|
59
|
+
tts: "tts";
|
|
60
|
+
ocr: "ocr";
|
|
61
|
+
vla: "vla";
|
|
47
62
|
"llamacpp-completion": "llamacpp-completion";
|
|
48
63
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
49
64
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
50
65
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
51
66
|
"onnx-tts": "onnx-tts";
|
|
67
|
+
"tts-ggml": "tts-ggml";
|
|
52
68
|
"parakeet-transcription": "parakeet-transcription";
|
|
53
69
|
"onnx-ocr": "onnx-ocr";
|
|
54
70
|
"sdcpp-generation": "sdcpp-generation";
|
|
71
|
+
"ggml-vla": "ggml-vla";
|
|
72
|
+
"ggml-classification": "ggml-classification";
|
|
55
73
|
llm: "llm";
|
|
56
74
|
whisper: "whisper";
|
|
57
75
|
nmt: "nmt";
|
|
58
76
|
parakeet: "parakeet";
|
|
59
|
-
|
|
60
|
-
ocr: "ocr";
|
|
61
|
-
diffusion: "diffusion";
|
|
77
|
+
classification: "classification";
|
|
62
78
|
}>, z.ZodLiteral<"vad">]>>;
|
|
63
79
|
}, z.core.$strip>]>>;
|
|
64
80
|
}, z.core.$strip>;
|
|
@@ -94,7 +110,18 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
94
110
|
}>>;
|
|
95
111
|
"cache-type-k": z.ZodOptional<z.ZodString>;
|
|
96
112
|
"cache-type-v": z.ZodOptional<z.ZodString>;
|
|
113
|
+
"main-gpu": z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
|
|
114
|
+
integrated: "integrated";
|
|
115
|
+
dedicated: "dedicated";
|
|
116
|
+
}>]>>;
|
|
117
|
+
"split-mode": z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
none: "none";
|
|
119
|
+
layer: "layer";
|
|
120
|
+
row: "row";
|
|
121
|
+
}>>;
|
|
122
|
+
"tensor-split": z.ZodOptional<z.ZodString>;
|
|
97
123
|
openclCacheDir: z.ZodOptional<z.ZodString>;
|
|
124
|
+
reasoning_budget: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<-1>, z.ZodLiteral<0>]>>;
|
|
98
125
|
projectionModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
99
126
|
src: z.ZodString;
|
|
100
127
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -108,21 +135,26 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
108
135
|
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
109
136
|
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
110
137
|
embeddings: "embeddings";
|
|
138
|
+
diffusion: "diffusion";
|
|
139
|
+
tts: "tts";
|
|
140
|
+
ocr: "ocr";
|
|
141
|
+
vla: "vla";
|
|
111
142
|
"llamacpp-completion": "llamacpp-completion";
|
|
112
143
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
113
144
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
114
145
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
115
146
|
"onnx-tts": "onnx-tts";
|
|
147
|
+
"tts-ggml": "tts-ggml";
|
|
116
148
|
"parakeet-transcription": "parakeet-transcription";
|
|
117
149
|
"onnx-ocr": "onnx-ocr";
|
|
118
150
|
"sdcpp-generation": "sdcpp-generation";
|
|
151
|
+
"ggml-vla": "ggml-vla";
|
|
152
|
+
"ggml-classification": "ggml-classification";
|
|
119
153
|
llm: "llm";
|
|
120
154
|
whisper: "whisper";
|
|
121
155
|
nmt: "nmt";
|
|
122
156
|
parakeet: "parakeet";
|
|
123
|
-
|
|
124
|
-
ocr: "ocr";
|
|
125
|
-
diffusion: "diffusion";
|
|
157
|
+
classification: "classification";
|
|
126
158
|
}>, z.ZodLiteral<"vad">]>>;
|
|
127
159
|
}, z.core.$strip>]>>;
|
|
128
160
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -147,7 +179,11 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
147
179
|
toolsMode?: "static" | "dynamic" | undefined;
|
|
148
180
|
"cache-type-k"?: string | undefined;
|
|
149
181
|
"cache-type-v"?: string | undefined;
|
|
182
|
+
"main-gpu"?: number | "integrated" | "dedicated" | undefined;
|
|
183
|
+
"split-mode"?: "none" | "layer" | "row" | undefined;
|
|
184
|
+
"tensor-split"?: string | undefined;
|
|
150
185
|
openclCacheDir?: string | undefined;
|
|
186
|
+
reasoning_budget?: 0 | -1 | undefined;
|
|
151
187
|
projectionModelSrc?: string | {
|
|
152
188
|
src: string;
|
|
153
189
|
name?: string | undefined;
|
|
@@ -159,7 +195,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
159
195
|
engine?: string | undefined;
|
|
160
196
|
expectedSize?: number | undefined;
|
|
161
197
|
sha256Checksum?: string | undefined;
|
|
162
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
198
|
+
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;
|
|
163
199
|
} | undefined;
|
|
164
200
|
}, {
|
|
165
201
|
ctx_size?: number | undefined;
|
|
@@ -183,7 +219,11 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
183
219
|
toolsMode?: "static" | "dynamic" | undefined;
|
|
184
220
|
"cache-type-k"?: string | undefined;
|
|
185
221
|
"cache-type-v"?: string | undefined;
|
|
222
|
+
"main-gpu"?: number | "integrated" | "dedicated" | undefined;
|
|
223
|
+
"split-mode"?: "none" | "layer" | "row" | undefined;
|
|
224
|
+
"tensor-split"?: string | undefined;
|
|
186
225
|
openclCacheDir?: string | undefined;
|
|
226
|
+
reasoning_budget?: 0 | -1 | undefined;
|
|
187
227
|
projectionModelSrc?: string | {
|
|
188
228
|
src: string;
|
|
189
229
|
name?: string | undefined;
|
|
@@ -195,7 +235,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
195
235
|
engine?: string | undefined;
|
|
196
236
|
expectedSize?: number | undefined;
|
|
197
237
|
sha256Checksum?: string | undefined;
|
|
198
|
-
addon?: "embeddings" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "
|
|
238
|
+
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;
|
|
199
239
|
} | undefined;
|
|
200
240
|
}>>;
|
|
201
241
|
export type LlmConfig = z.infer<typeof llmConfigSchema>;
|
|
@@ -227,6 +267,12 @@ export declare const embedConfigBaseSchema: z.ZodObject<{
|
|
|
227
267
|
integrated: "integrated";
|
|
228
268
|
dedicated: "dedicated";
|
|
229
269
|
}>]>>;
|
|
270
|
+
splitMode: z.ZodOptional<z.ZodEnum<{
|
|
271
|
+
none: "none";
|
|
272
|
+
layer: "layer";
|
|
273
|
+
row: "row";
|
|
274
|
+
}>>;
|
|
275
|
+
tensorSplit: z.ZodOptional<z.ZodString>;
|
|
230
276
|
verbosity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
231
277
|
openclCacheDir: z.ZodOptional<z.ZodString>;
|
|
232
278
|
}, z.core.$strip>;
|
|
@@ -264,6 +310,12 @@ export declare const embedConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
264
310
|
integrated: "integrated";
|
|
265
311
|
dedicated: "dedicated";
|
|
266
312
|
}>]>>;
|
|
313
|
+
splitMode: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
none: "none";
|
|
315
|
+
layer: "layer";
|
|
316
|
+
row: "row";
|
|
317
|
+
}>>;
|
|
318
|
+
tensorSplit: z.ZodOptional<z.ZodString>;
|
|
267
319
|
verbosity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
268
320
|
openclCacheDir: z.ZodOptional<z.ZodString>;
|
|
269
321
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -275,6 +327,8 @@ export declare const embedConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
275
327
|
embdNormalize?: number | undefined;
|
|
276
328
|
flashAttention?: "on" | "off" | "auto" | undefined;
|
|
277
329
|
mainGpu?: number | "integrated" | "dedicated" | undefined;
|
|
330
|
+
splitMode?: "none" | "layer" | "row" | undefined;
|
|
331
|
+
tensorSplit?: string | undefined;
|
|
278
332
|
verbosity?: 0 | 3 | 2 | 1 | undefined;
|
|
279
333
|
openclCacheDir?: string | undefined;
|
|
280
334
|
}, {
|
|
@@ -286,6 +340,8 @@ export declare const embedConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
286
340
|
embdNormalize?: number | undefined;
|
|
287
341
|
flashAttention?: "on" | "off" | "auto" | undefined;
|
|
288
342
|
mainGpu?: number | "integrated" | "dedicated" | undefined;
|
|
343
|
+
splitMode?: "none" | "layer" | "row" | undefined;
|
|
344
|
+
tensorSplit?: string | undefined;
|
|
289
345
|
verbosity?: 0 | 3 | 2 | 1 | undefined;
|
|
290
346
|
openclCacheDir?: string | undefined;
|
|
291
347
|
}>>;
|
|
@@ -30,6 +30,7 @@ export const llmConfigBaseSchema = z.object({
|
|
|
30
30
|
z.number().int().min(1), // positive integer: fixed token count
|
|
31
31
|
])
|
|
32
32
|
.optional(),
|
|
33
|
+
/** JS-side only: seeds conversation history. Never forwarded to the C++ addon. */
|
|
33
34
|
system_prompt: z.string().optional(),
|
|
34
35
|
no_mmap: z.boolean().optional(),
|
|
35
36
|
verbosity: verbositySchema.optional(),
|
|
@@ -45,11 +46,20 @@ export const llmConfigBaseSchema = z.object({
|
|
|
45
46
|
.optional(),
|
|
46
47
|
"cache-type-k": z.string().optional(),
|
|
47
48
|
"cache-type-v": z.string().optional(),
|
|
49
|
+
"main-gpu": z
|
|
50
|
+
.union([z.number().int().min(0), z.enum(["integrated", "dedicated"])])
|
|
51
|
+
.optional(),
|
|
52
|
+
"split-mode": z.enum(["none", "layer", "row"]).optional(),
|
|
53
|
+
"tensor-split": z.string().optional(),
|
|
48
54
|
/**
|
|
49
55
|
* Writable directory for OpenCL kernel binary cache. Required on Android
|
|
50
56
|
* for fast GPU startup.
|
|
51
57
|
*/
|
|
52
58
|
openclCacheDir: z.string().optional(),
|
|
59
|
+
/**
|
|
60
|
+
* Reasoning channel token budget. `-1` = unrestricted, `0` = disabled.
|
|
61
|
+
*/
|
|
62
|
+
reasoning_budget: z.union([z.literal(-1), z.literal(0)]).optional(),
|
|
53
63
|
projectionModelSrc: modelSrcInputSchema.optional(),
|
|
54
64
|
});
|
|
55
65
|
// Default values - typed as partial of the config
|
|
@@ -76,6 +86,8 @@ export const embedConfigBaseSchema = z.object({
|
|
|
76
86
|
mainGpu: z
|
|
77
87
|
.union([z.number().int().min(0), z.enum(["integrated", "dedicated"])])
|
|
78
88
|
.optional(),
|
|
89
|
+
splitMode: z.enum(["none", "layer", "row"]).optional(),
|
|
90
|
+
tensorSplit: z.string().optional(),
|
|
79
91
|
verbosity: verbositySchema.optional(),
|
|
80
92
|
/**
|
|
81
93
|
* Writable directory for OpenCL kernel binary cache. Required on Android
|