@jambonz/llm 0.5.6 → 0.5.7
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/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +6 -0
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.d.cts +1 -1
- package/dist/test-kit/index.d.ts +1 -1
- package/dist/test-kit/index.js +6 -0
- package/dist/test-kit/index.js.map +1 -1
- package/dist/{types-BEgQaQIb.d.cts → types-rZZBXYhB.d.cts} +10 -0
- package/dist/{types-BEgQaQIb.d.ts → types-rZZBXYhB.d.ts} +10 -0
- package/package.json +1 -1
|
@@ -72,6 +72,16 @@ interface PromptRequest {
|
|
|
72
72
|
tools?: Tool[];
|
|
73
73
|
temperature?: number;
|
|
74
74
|
maxTokens?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Provider-specific request-body parameters merged verbatim into the
|
|
77
|
+
* outgoing request by OpenAI-compatible adapters. Opt-in escape hatch for
|
|
78
|
+
* fields the typed interface does not model — e.g. a vLLM/Mantle-served
|
|
79
|
+
* Kimi endpoint's `{chat_template_kwargs: {enable_thinking: false}}` to
|
|
80
|
+
* suppress chain-of-thought. Never sent unless set. Keys that collide with
|
|
81
|
+
* library-managed fields (model, messages, stream, tools, …) are ignored,
|
|
82
|
+
* so this can only add parameters, never override core request shape.
|
|
83
|
+
*/
|
|
84
|
+
providerParams?: Record<string, unknown>;
|
|
75
85
|
/** Abort the stream. Adapters MUST honor this and propagate to the vendor SDK. */
|
|
76
86
|
signal?: AbortSignal;
|
|
77
87
|
}
|
|
@@ -72,6 +72,16 @@ interface PromptRequest {
|
|
|
72
72
|
tools?: Tool[];
|
|
73
73
|
temperature?: number;
|
|
74
74
|
maxTokens?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Provider-specific request-body parameters merged verbatim into the
|
|
77
|
+
* outgoing request by OpenAI-compatible adapters. Opt-in escape hatch for
|
|
78
|
+
* fields the typed interface does not model — e.g. a vLLM/Mantle-served
|
|
79
|
+
* Kimi endpoint's `{chat_template_kwargs: {enable_thinking: false}}` to
|
|
80
|
+
* suppress chain-of-thought. Never sent unless set. Keys that collide with
|
|
81
|
+
* library-managed fields (model, messages, stream, tools, …) are ignored,
|
|
82
|
+
* so this can only add parameters, never override core request shape.
|
|
83
|
+
*/
|
|
84
|
+
providerParams?: Record<string, unknown>;
|
|
75
85
|
/** Abort the stream. Adapters MUST honor this and propagate to the vendor SDK. */
|
|
76
86
|
signal?: AbortSignal;
|
|
77
87
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jambonz/llm",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Voice-oriented LLM adapter library — a uniform interface for streaming chat completions from multiple LLM vendors, with first-class support for tool calls, AbortSignal interruption, and lossless history round-tripping.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|