@qvac/llm-llamacpp 0.56.0 → 0.57.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/index.d.ts +6 -0
- package/index.js +5 -0
- package/package.json +1 -1
- package/prebuilds/android-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/darwin-arm64/qvac__llm-llamacpp.bare.exports +1 -1
- package/prebuilds/darwin-x64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/darwin-x64/qvac__llm-llamacpp.bare.exports +1 -1
- package/prebuilds/ios-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/ios-arm64/qvac__llm-llamacpp.bare.exports +1 -1
- package/prebuilds/ios-arm64-simulator/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/ios-arm64-simulator/qvac__llm-llamacpp.bare.exports +1 -1
- package/prebuilds/ios-x64-simulator/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/ios-x64-simulator/qvac__llm-llamacpp.bare.exports +1 -1
- package/prebuilds/linux-arm64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/linux-x64/qvac__llm-llamacpp.bare +0 -0
- package/prebuilds/win32-x64/qvac__llm-llamacpp.bare +0 -0
package/index.d.ts
CHANGED
|
@@ -349,6 +349,12 @@ declare namespace LlmLlamacpp {
|
|
|
349
349
|
* `"required"` or a function name without tools throws.
|
|
350
350
|
*/
|
|
351
351
|
tool_choice?: "auto" | "none" | "required" | (string & {});
|
|
352
|
+
/**
|
|
353
|
+
* Whether one response may carry more than one tool call. `true` lets the
|
|
354
|
+
* template and the tool-call grammar accept several; unset or `false`
|
|
355
|
+
* keeps one. Ignored when the prompt carries no tools.
|
|
356
|
+
*/
|
|
357
|
+
parallel_tool_calls?: boolean;
|
|
352
358
|
/**
|
|
353
359
|
* Per-request reasoning channel budget. `-1` keeps the model's reasoning
|
|
354
360
|
* channel on; `0` disables it for this request; any positive integer caps
|
package/index.js
CHANGED
|
@@ -97,6 +97,7 @@ const GENERATION_PARAM_KEYS = new Set([
|
|
|
97
97
|
"grammar",
|
|
98
98
|
"json_schema",
|
|
99
99
|
"tool_choice",
|
|
100
|
+
"parallel_tool_calls",
|
|
100
101
|
"reasoning_budget",
|
|
101
102
|
"remove_thinking_from_context",
|
|
102
103
|
]);
|
|
@@ -145,6 +146,10 @@ function normalizeGenerationParams(generationParams) {
|
|
|
145
146
|
(typeof sanitized.tool_choice !== "string" || sanitized.tool_choice.length === 0)) {
|
|
146
147
|
throw new TypeError('generationParams.tool_choice must be "auto", "none", "required" or a declared function name');
|
|
147
148
|
}
|
|
149
|
+
if (sanitized.parallel_tool_calls !== undefined &&
|
|
150
|
+
typeof sanitized.parallel_tool_calls !== "boolean") {
|
|
151
|
+
throw new TypeError("generationParams.parallel_tool_calls must be a boolean when provided");
|
|
152
|
+
}
|
|
148
153
|
const hasGrammar = typeof sanitized.grammar === "string" && sanitized.grammar.length > 0;
|
|
149
154
|
const hasJsonSchema = sanitized.json_schema !== undefined &&
|
|
150
155
|
sanitized.json_schema !== null &&
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|