llmshim 0.3.7 → 0.5.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/dist/types.d.ts +99 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -11,8 +11,48 @@ export type ReasoningEffort = "none" | "low" | "medium" | "high" | "xhigh" | "ma
|
|
|
11
11
|
export type ReasoningMode = "standard" | "pro";
|
|
12
12
|
/** Role of a conversation message. */
|
|
13
13
|
export type Role = "system" | "user" | "assistant" | "tool" | "developer";
|
|
14
|
+
/** Provenance recorded when a reasoning block was received. */
|
|
15
|
+
export interface ReasoningOrigin {
|
|
16
|
+
provider: string;
|
|
17
|
+
model: string;
|
|
18
|
+
family: string | null;
|
|
19
|
+
wire: "anthropic-messages" | "openai-responses" | "openai-chat" | "google-generate-content";
|
|
20
|
+
received_at: string;
|
|
21
|
+
account?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Preserve the complete object when recording or replaying a conversation. */
|
|
24
|
+
export interface ReasoningBlock {
|
|
25
|
+
kind: "text" | "redacted" | "encrypted";
|
|
26
|
+
text?: string;
|
|
27
|
+
data?: string;
|
|
28
|
+
signature?: string;
|
|
29
|
+
item_id?: string;
|
|
30
|
+
origin: ReasoningOrigin;
|
|
31
|
+
payload?: unknown;
|
|
32
|
+
source_field?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ReasoningDelta extends ReasoningBlock {
|
|
35
|
+
index?: number | string;
|
|
36
|
+
replace?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ThoughtSignature {
|
|
39
|
+
data: string;
|
|
40
|
+
origin: ReasoningOrigin;
|
|
41
|
+
}
|
|
42
|
+
/** Persist this mapping with the call; id is the wire correlation id. */
|
|
43
|
+
export interface WireToolId {
|
|
44
|
+
signature_field?: string;
|
|
45
|
+
provider: string;
|
|
46
|
+
wire: ReasoningOrigin["wire"];
|
|
47
|
+
scope: string;
|
|
48
|
+
part_id: string;
|
|
49
|
+
id: string | null;
|
|
50
|
+
item_id?: string;
|
|
51
|
+
}
|
|
14
52
|
/** A tool call made by the assistant. */
|
|
15
53
|
export interface ToolCall {
|
|
54
|
+
wire_ids?: WireToolId[];
|
|
55
|
+
thought_signature?: ThoughtSignature;
|
|
16
56
|
id?: string;
|
|
17
57
|
type?: "function";
|
|
18
58
|
function?: {
|
|
@@ -30,9 +70,10 @@ export interface Message {
|
|
|
30
70
|
tool_call_id?: string;
|
|
31
71
|
/** Tool calls made by the assistant. */
|
|
32
72
|
tool_calls?: ToolCall[];
|
|
73
|
+
reasoning?: ReasoningBlock[];
|
|
33
74
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
75
|
+
* @deprecated Legacy input only. Untracked reasoning is dropped; preserve
|
|
76
|
+
* the full reasoning array from the previous assistant message instead.
|
|
36
77
|
*/
|
|
37
78
|
reasoning_content?: string;
|
|
38
79
|
}
|
|
@@ -54,8 +95,35 @@ export interface Config {
|
|
|
54
95
|
/** Unified reasoning mode; see {@link ReasoningMode}. Default "standard". */
|
|
55
96
|
reasoning_mode?: ReasoningMode;
|
|
56
97
|
}
|
|
98
|
+
export interface CacheSegment {
|
|
99
|
+
upto_message: number;
|
|
100
|
+
label?: string;
|
|
101
|
+
stability: "static" | "session" | "turn";
|
|
102
|
+
}
|
|
103
|
+
export interface CachePolicy {
|
|
104
|
+
segments?: CacheSegment[];
|
|
105
|
+
key?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ShimConfig {
|
|
108
|
+
structured_output?: "auto" | "native" | "forced_tool" | "prompt";
|
|
109
|
+
tool_calling?: "auto" | "native" | "prompt";
|
|
110
|
+
reasoning_capture?: "off" | "forced_tool";
|
|
111
|
+
}
|
|
112
|
+
export type ResponseFormat = {
|
|
113
|
+
type: "json_schema";
|
|
114
|
+
json_schema: {
|
|
115
|
+
name?: string;
|
|
116
|
+
schema: unknown;
|
|
117
|
+
strict?: boolean;
|
|
118
|
+
};
|
|
119
|
+
} | {
|
|
120
|
+
type: "json_object";
|
|
121
|
+
};
|
|
57
122
|
/** Request body for POST /v1/chat and POST /v1/chat/stream. */
|
|
58
123
|
export interface ChatRequest {
|
|
124
|
+
"x-cache"?: CachePolicy;
|
|
125
|
+
"x-shim"?: ShimConfig;
|
|
126
|
+
response_format?: ResponseFormat;
|
|
59
127
|
/**
|
|
60
128
|
* Model identifier. Use "provider/model" (e.g. "anthropic/claude-sonnet-4-6")
|
|
61
129
|
* or just the model name for auto-detection (e.g. "claude-sonnet-4-6").
|
|
@@ -79,9 +147,18 @@ export interface Usage {
|
|
|
79
147
|
/** Reasoning/thinking tokens used (omitted when zero). */
|
|
80
148
|
reasoning_tokens?: number;
|
|
81
149
|
total_tokens: number;
|
|
150
|
+
/** Cache input tokens (absent on servers older than 0.4). */
|
|
151
|
+
cache_read_tokens?: number;
|
|
152
|
+
cache_write_tokens?: number;
|
|
153
|
+
/**
|
|
154
|
+
* USD charged for this response. `null` means the server could not price the
|
|
155
|
+
* model — it never means free. Absent on servers older than 0.4.
|
|
156
|
+
*/
|
|
157
|
+
cost_usd?: number | null;
|
|
82
158
|
}
|
|
83
159
|
/** The assistant message inside a ChatResponse. */
|
|
84
160
|
export interface ResponseMessage {
|
|
161
|
+
refusal?: string;
|
|
85
162
|
role: string;
|
|
86
163
|
/**
|
|
87
164
|
* Assistant content — a string for plain text, or an array of content
|
|
@@ -89,9 +166,12 @@ export interface ResponseMessage {
|
|
|
89
166
|
*/
|
|
90
167
|
content: unknown;
|
|
91
168
|
tool_calls?: ToolCall[];
|
|
169
|
+
reasoning?: ReasoningBlock[];
|
|
92
170
|
}
|
|
93
171
|
/** Response body from POST /v1/chat (non-streaming). */
|
|
94
172
|
export interface ChatResponse {
|
|
173
|
+
finish_reason?: string;
|
|
174
|
+
"x-llmshim-served-model"?: string;
|
|
95
175
|
/** Response ID from the provider. */
|
|
96
176
|
id: string;
|
|
97
177
|
model: string;
|
|
@@ -111,11 +191,14 @@ export interface ContentEvent {
|
|
|
111
191
|
}
|
|
112
192
|
/** A chunk of reasoning/thinking text. */
|
|
113
193
|
export interface ReasoningEvent {
|
|
194
|
+
blocks?: ReasoningDelta[];
|
|
114
195
|
type: "reasoning";
|
|
115
196
|
text: string;
|
|
116
197
|
}
|
|
117
198
|
/** A tool call emitted during streaming. */
|
|
118
199
|
export interface ToolCallEvent {
|
|
200
|
+
wire_ids?: WireToolId[];
|
|
201
|
+
thought_signature?: ThoughtSignature;
|
|
119
202
|
type: "tool_call";
|
|
120
203
|
id: string;
|
|
121
204
|
name: string;
|
|
@@ -130,15 +213,29 @@ export interface UsageEvent {
|
|
|
130
213
|
/** Reasoning/thinking tokens used (omitted when zero). */
|
|
131
214
|
reasoning_tokens?: number;
|
|
132
215
|
total_tokens: number;
|
|
216
|
+
/** Cache input tokens (absent on servers older than 0.4). */
|
|
217
|
+
cache_read_tokens?: number;
|
|
218
|
+
cache_write_tokens?: number;
|
|
219
|
+
/** `null` when the server could not price the model, never `0`. */
|
|
220
|
+
cost_usd?: number | null;
|
|
133
221
|
}
|
|
134
222
|
/** Terminal event signalling the stream is complete. */
|
|
135
223
|
export interface DoneEvent {
|
|
224
|
+
finish_reason?: string;
|
|
225
|
+
"x-llmshim-served-model"?: string;
|
|
136
226
|
type: "done";
|
|
137
227
|
}
|
|
138
228
|
/** An error surfaced mid-stream. */
|
|
139
229
|
export interface ErrorEvent {
|
|
140
230
|
type: "error";
|
|
141
231
|
message: string;
|
|
232
|
+
error?: {
|
|
233
|
+
message: string;
|
|
234
|
+
type?: string;
|
|
235
|
+
code: unknown;
|
|
236
|
+
param: unknown;
|
|
237
|
+
status?: number;
|
|
238
|
+
};
|
|
142
239
|
}
|
|
143
240
|
/** Discriminated union of all SSE events emitted during streaming. */
|
|
144
241
|
export type StreamEvent = ContentEvent | ReasoningEvent | ToolCallEvent | UsageEvent | DoneEvent | ErrorEvent;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llmshim",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "TypeScript client for the llmshim proxy (multi-provider LLM API) \u2014 bundles a prebuilt binary and auto-starts it, or connects to a proxy you run yourself.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"node": ">=18"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"llmshim-darwin-arm64": "0.
|
|
24
|
-
"llmshim-darwin-x64": "0.
|
|
25
|
-
"llmshim-linux-x64": "0.
|
|
26
|
-
"llmshim-linux-arm64": "0.
|
|
27
|
-
"@sanjay920/llmshim-win32-x64": "0.
|
|
23
|
+
"llmshim-darwin-arm64": "0.5.0",
|
|
24
|
+
"llmshim-darwin-x64": "0.5.0",
|
|
25
|
+
"llmshim-linux-x64": "0.5.0",
|
|
26
|
+
"llmshim-linux-arm64": "0.5.0",
|
|
27
|
+
"@sanjay920/llmshim-win32-x64": "0.5.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc -p tsconfig.json",
|