@zenmux/rosetta-ai 1.0.15 → 1.0.17
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/messages/chat-completions.js +4 -2
- package/dist/messages/gemini.js +2 -1
- package/dist/messages/responses.js +4 -2
- package/dist/responses/chat-completions.js +20 -4
- package/dist/responses/gemini.js +5 -2
- package/dist/responses/messages.js +5 -2
- package/dist/responses/utils.d.ts +34 -3
- package/dist/responses/utils.js +123 -4
- package/package.json +2 -2
|
@@ -151,6 +151,8 @@ class MessagesToChatCompletionConverter {
|
|
|
151
151
|
const outputTokens = u.completion_tokens ?? 0;
|
|
152
152
|
const totalTokens = u.total_tokens ?? inputTokens + outputTokens;
|
|
153
153
|
const cachedTokens = u.prompt_tokens_details?.cached_tokens ?? 0;
|
|
154
|
+
const cacheWriteTokens = u.prompt_tokens_details?.cache_write_tokens ?? 0;
|
|
155
|
+
const uncachedInputTokens = Math.max(0, inputTokens - cachedTokens - cacheWriteTokens);
|
|
154
156
|
const reasoningTokens = u.completion_tokens_details?.reasoning_tokens ?? 0;
|
|
155
157
|
const webSearch = u.prompt_tokens_details?.web_search ?? 0;
|
|
156
158
|
return {
|
|
@@ -166,7 +168,7 @@ class MessagesToChatCompletionConverter {
|
|
|
166
168
|
cached_tokens: cachedTokens,
|
|
167
169
|
...(webSearch > 0 ? { web_search: webSearch } : {}),
|
|
168
170
|
},
|
|
169
|
-
input_tokens:
|
|
171
|
+
input_tokens: uncachedInputTokens,
|
|
170
172
|
output_tokens: outputTokens,
|
|
171
173
|
cache_read_input_tokens: cachedTokens,
|
|
172
174
|
server_tool_use: webSearch > 0
|
|
@@ -175,7 +177,7 @@ class MessagesToChatCompletionConverter {
|
|
|
175
177
|
web_search_requests: webSearch,
|
|
176
178
|
}
|
|
177
179
|
: null,
|
|
178
|
-
cache_creation_input_tokens:
|
|
180
|
+
cache_creation_input_tokens: cacheWriteTokens,
|
|
179
181
|
service_tier: "standard",
|
|
180
182
|
audio_input_tokens: u.prompt_tokens_details?.audio_tokens ?? 0,
|
|
181
183
|
audio_cache_read_tokens: u.prompt_tokens_details?.audio_cached_tokens ?? 0,
|
package/dist/messages/gemini.js
CHANGED
|
@@ -164,6 +164,7 @@ class MessagesToGeminiConverter {
|
|
|
164
164
|
}
|
|
165
165
|
const promptTokens = promptTokenCount + toolUsePromptTokenCount;
|
|
166
166
|
const completionTokens = candidatesTokenCount + thoughtsTokenCount;
|
|
167
|
+
const uncachedInputTokens = Math.max(0, promptTokens - cachedContentTokenCount);
|
|
167
168
|
return {
|
|
168
169
|
prompt_tokens: promptTokens,
|
|
169
170
|
completion_tokens: completionTokens,
|
|
@@ -180,7 +181,7 @@ class MessagesToGeminiConverter {
|
|
|
180
181
|
web_search_queries: webSearchQueriesCount,
|
|
181
182
|
tool_use: toolUsePromptTokenCount,
|
|
182
183
|
trafficType,
|
|
183
|
-
input_tokens:
|
|
184
|
+
input_tokens: uncachedInputTokens,
|
|
184
185
|
output_tokens: completionTokens,
|
|
185
186
|
cache_read_input_tokens: cachedContentTokenCount,
|
|
186
187
|
cache_creation_input_tokens: 0,
|
|
@@ -140,6 +140,8 @@ class MessagesToResponsesConverter {
|
|
|
140
140
|
const outputTokens = u.output_tokens ?? 0;
|
|
141
141
|
const totalTokens = u.total_tokens ?? inputTokens + outputTokens;
|
|
142
142
|
const cachedTokens = u.input_tokens_details?.cached_tokens ?? 0;
|
|
143
|
+
const cacheWriteTokens = u.input_tokens_details?.cache_write_tokens ?? 0;
|
|
144
|
+
const uncachedInputTokens = Math.max(0, inputTokens - cachedTokens - cacheWriteTokens);
|
|
143
145
|
const reasoningTokens = u.output_tokens_details?.reasoning_tokens ?? 0;
|
|
144
146
|
return {
|
|
145
147
|
completion_tokens: outputTokens,
|
|
@@ -154,7 +156,7 @@ class MessagesToResponsesConverter {
|
|
|
154
156
|
cached_tokens: cachedTokens,
|
|
155
157
|
...(webSearchCount > 0 ? { web_search: webSearchCount } : {}),
|
|
156
158
|
},
|
|
157
|
-
input_tokens:
|
|
159
|
+
input_tokens: uncachedInputTokens,
|
|
158
160
|
output_tokens: outputTokens,
|
|
159
161
|
cache_read_input_tokens: cachedTokens,
|
|
160
162
|
server_tool_use: webSearchCount > 0
|
|
@@ -163,7 +165,7 @@ class MessagesToResponsesConverter {
|
|
|
163
165
|
web_search_requests: webSearchCount,
|
|
164
166
|
}
|
|
165
167
|
: null,
|
|
166
|
-
cache_creation_input_tokens:
|
|
168
|
+
cache_creation_input_tokens: cacheWriteTokens,
|
|
167
169
|
service_tier: "standard",
|
|
168
170
|
audio_input_tokens: 0,
|
|
169
171
|
audio_cache_read_tokens: 0,
|
|
@@ -174,7 +174,7 @@ class ResponsesToChatCompletionConverter {
|
|
|
174
174
|
// absent, fall back to protocol defaults so behavior matches a gateway
|
|
175
175
|
// that does not round-trip the request.
|
|
176
176
|
const echoed = this.echoRequestFields(params);
|
|
177
|
-
|
|
177
|
+
const respResult = {
|
|
178
178
|
id: response.id,
|
|
179
179
|
object: "response",
|
|
180
180
|
created_at: response.created,
|
|
@@ -232,6 +232,10 @@ class ResponsesToChatCompletionConverter {
|
|
|
232
232
|
}
|
|
233
233
|
: undefined,
|
|
234
234
|
};
|
|
235
|
+
// Reverse the request-side namespace flattening: split namespaced
|
|
236
|
+
// function_call names into { namespace, name } and re-nest echoed tools.
|
|
237
|
+
(0, utils_1.denamespaceResponse)(respResult);
|
|
238
|
+
return respResult;
|
|
235
239
|
}
|
|
236
240
|
/**
|
|
237
241
|
* Compute the request-scoped field values to echo onto a converted response,
|
|
@@ -254,7 +258,7 @@ class ResponsesToChatCompletionConverter {
|
|
|
254
258
|
truncation: "disabled",
|
|
255
259
|
};
|
|
256
260
|
}
|
|
257
|
-
const tools = (
|
|
261
|
+
const tools = (params.tools ?? [])
|
|
258
262
|
.map(t => this.toRespTool(t))
|
|
259
263
|
.filter(Boolean);
|
|
260
264
|
return {
|
|
@@ -280,6 +284,18 @@ class ResponsesToChatCompletionConverter {
|
|
|
280
284
|
*/
|
|
281
285
|
toRespTool(tool) {
|
|
282
286
|
const t = tool;
|
|
287
|
+
if (t.type === "namespace") {
|
|
288
|
+
// Echo the client's namespace tool back in its original nested shape,
|
|
289
|
+
// mapping each inner tool through the same function-tool normalization.
|
|
290
|
+
return {
|
|
291
|
+
type: "namespace",
|
|
292
|
+
name: t.name,
|
|
293
|
+
description: t.description,
|
|
294
|
+
tools: (Array.isArray(t.tools) ? t.tools : [])
|
|
295
|
+
.map((inner) => this.toRespTool(inner))
|
|
296
|
+
.filter(Boolean),
|
|
297
|
+
};
|
|
298
|
+
}
|
|
283
299
|
if (t.type === "function") {
|
|
284
300
|
return {
|
|
285
301
|
type: "function",
|
|
@@ -363,7 +379,7 @@ class ResponsesToChatCompletionConverter {
|
|
|
363
379
|
if (chunk.usage) {
|
|
364
380
|
events.push(...this.emitCompleted(chunk.usage));
|
|
365
381
|
}
|
|
366
|
-
return events;
|
|
382
|
+
return (0, utils_1.denamespaceStreamEvents)(events);
|
|
367
383
|
}
|
|
368
384
|
const delta = choice.delta;
|
|
369
385
|
// Reasoning delta — open a reasoning item if not already open.
|
|
@@ -584,7 +600,7 @@ class ResponsesToChatCompletionConverter {
|
|
|
584
600
|
events.push(...this.emitCompleted(undefined, status));
|
|
585
601
|
}
|
|
586
602
|
}
|
|
587
|
-
return events;
|
|
603
|
+
return (0, utils_1.denamespaceStreamEvents)(events);
|
|
588
604
|
}
|
|
589
605
|
/** Open a message output item and its first content part. */
|
|
590
606
|
openMessage(state, kind, events) {
|
package/dist/responses/gemini.js
CHANGED
|
@@ -129,7 +129,7 @@ class ResponsesToGeminiConverter {
|
|
|
129
129
|
const promptTokens = (usage?.promptTokenCount ?? 0) + (usage?.toolUsePromptTokenCount ?? 0);
|
|
130
130
|
const thoughtsTokens = usage?.thoughtsTokenCount ?? 0;
|
|
131
131
|
const candidatesTokens = (usage?.candidatesTokenCount ?? 0) + thoughtsTokens;
|
|
132
|
-
|
|
132
|
+
const respResult = {
|
|
133
133
|
id: response.responseId ?? `resp_${this.generateId()}`,
|
|
134
134
|
object: "response",
|
|
135
135
|
created_at: Math.floor(Date.now() / 1000),
|
|
@@ -163,6 +163,9 @@ class ResponsesToGeminiConverter {
|
|
|
163
163
|
},
|
|
164
164
|
},
|
|
165
165
|
};
|
|
166
|
+
// Split namespaced function_call names into { namespace, name }.
|
|
167
|
+
(0, utils_1.denamespaceResponse)(respResult);
|
|
168
|
+
return respResult;
|
|
166
169
|
}
|
|
167
170
|
// --- Stream conversion (Gemini → Responses, backward) ---
|
|
168
171
|
async *convertStream(stream) {
|
|
@@ -340,7 +343,7 @@ class ResponsesToGeminiConverter {
|
|
|
340
343
|
});
|
|
341
344
|
}
|
|
342
345
|
}
|
|
343
|
-
return events;
|
|
346
|
+
return (0, utils_1.denamespaceStreamEvents)(events);
|
|
344
347
|
}
|
|
345
348
|
// --- Private: request helpers ---
|
|
346
349
|
convertInput(systemParts, contents, input) {
|
|
@@ -172,7 +172,7 @@ class ResponsesToMessagesConverter {
|
|
|
172
172
|
// input_tokens counts only uncached tokens, with cache read/creation as separate buckets.
|
|
173
173
|
const cacheRead = usage.cache_read_input_tokens ?? 0;
|
|
174
174
|
const totalInputTokens = usage.input_tokens + cacheRead + (usage.cache_creation_input_tokens ?? 0);
|
|
175
|
-
|
|
175
|
+
const respResult = {
|
|
176
176
|
id: message.id,
|
|
177
177
|
object: "response",
|
|
178
178
|
created_at: Math.floor(Date.now() / 1000),
|
|
@@ -209,6 +209,9 @@ class ResponsesToMessagesConverter {
|
|
|
209
209
|
},
|
|
210
210
|
},
|
|
211
211
|
};
|
|
212
|
+
// Split namespaced function_call names into { namespace, name }.
|
|
213
|
+
(0, utils_1.denamespaceResponse)(respResult);
|
|
214
|
+
return respResult;
|
|
212
215
|
}
|
|
213
216
|
// --- Stream conversion (Messages → Responses, backward) ---
|
|
214
217
|
async *convertStream(stream) {
|
|
@@ -712,7 +715,7 @@ class ResponsesToMessagesConverter {
|
|
|
712
715
|
break;
|
|
713
716
|
}
|
|
714
717
|
}
|
|
715
|
-
return events;
|
|
718
|
+
return (0, utils_1.denamespaceStreamEvents)(events);
|
|
716
719
|
}
|
|
717
720
|
// --- Private: request helpers ---
|
|
718
721
|
convertInput(systemBlocks, messages, input) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type OpenAI from "openai";
|
|
2
|
+
/** Separator joining a namespace and tool name in a flattened function name. */
|
|
3
|
+
export declare const NAMESPACE_SEPARATOR = "___";
|
|
2
4
|
/**
|
|
3
5
|
* Expand Responses "namespace" tools into individual "function" tools.
|
|
4
6
|
*
|
|
@@ -13,9 +15,9 @@ import type OpenAI from "openai";
|
|
|
13
15
|
*
|
|
14
16
|
* Downstream provider protocols (chat-completions / messages / gemini) do not
|
|
15
17
|
* understand the `namespace` tool type, so each inner tool is flattened into a
|
|
16
|
-
* top-level function tool whose name is namespaced as `<namespace>
|
|
17
|
-
* (e.g. `
|
|
18
|
-
* the name matches the provider's required pattern `^[a-zA-Z0-9_-]+$`.
|
|
18
|
+
* top-level function tool whose name is namespaced as `<namespace>___<tool>`
|
|
19
|
+
* (e.g. `agents___spawn_agent`). A triple-underscore separator is used (not a
|
|
20
|
+
* dot) so the name matches the provider's required pattern `^[a-zA-Z0-9_-]+$`.
|
|
19
21
|
*
|
|
20
22
|
* Non-namespace tools pass through untouched and the original order is
|
|
21
23
|
* preserved (a namespace expands in place). When no namespace tool is present
|
|
@@ -23,3 +25,32 @@ import type OpenAI from "openai";
|
|
|
23
25
|
* common case.
|
|
24
26
|
*/
|
|
25
27
|
export declare function expandNamespaceTools(tools: OpenAI.Responses.ResponseCreateParams["tools"]): OpenAI.Responses.ResponseCreateParams["tools"];
|
|
28
|
+
/**
|
|
29
|
+
* Split a flattened `<namespace>___<tool>` name back into its parts. Returns
|
|
30
|
+
* `{ name }` (no namespace) when the name is not namespaced.
|
|
31
|
+
*/
|
|
32
|
+
export declare function splitNamespacedToolName(name: string): {
|
|
33
|
+
namespace?: string;
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Reverse of {@link expandNamespaceTools}: re-nest flattened
|
|
38
|
+
* `<namespace>___<tool>` function tools back into `namespace` tools. Already
|
|
39
|
+
* nested namespace tools and non-namespaced tools pass through untouched;
|
|
40
|
+
* order is preserved (a namespace appears at its first member's position).
|
|
41
|
+
*/
|
|
42
|
+
export declare function nestNamespaceTools(tools: any): any;
|
|
43
|
+
/**
|
|
44
|
+
* Apply the reverse namespace transform to a full Responses response (mutates):
|
|
45
|
+
* split any namespaced `function_call` output items into `{ namespace, name }`
|
|
46
|
+
* and re-nest the echoed `tools` into namespace tools.
|
|
47
|
+
*/
|
|
48
|
+
export declare function denamespaceResponse(resp: any): void;
|
|
49
|
+
/**
|
|
50
|
+
* Apply the reverse namespace transform to a batch of streaming events
|
|
51
|
+
* (mutates in place, returns the same array). Covers function_call item events,
|
|
52
|
+
* function_call argument events, and terminal events carrying a full response.
|
|
53
|
+
*/
|
|
54
|
+
export declare function denamespaceStreamEvents<T extends {
|
|
55
|
+
type?: string;
|
|
56
|
+
}>(events: T[]): T[];
|
package/dist/responses/utils.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NAMESPACE_SEPARATOR = void 0;
|
|
3
4
|
exports.expandNamespaceTools = expandNamespaceTools;
|
|
5
|
+
exports.splitNamespacedToolName = splitNamespacedToolName;
|
|
6
|
+
exports.nestNamespaceTools = nestNamespaceTools;
|
|
7
|
+
exports.denamespaceResponse = denamespaceResponse;
|
|
8
|
+
exports.denamespaceStreamEvents = denamespaceStreamEvents;
|
|
9
|
+
/** Separator joining a namespace and tool name in a flattened function name. */
|
|
10
|
+
exports.NAMESPACE_SEPARATOR = "___";
|
|
4
11
|
/**
|
|
5
12
|
* Expand Responses "namespace" tools into individual "function" tools.
|
|
6
13
|
*
|
|
@@ -15,9 +22,9 @@ exports.expandNamespaceTools = expandNamespaceTools;
|
|
|
15
22
|
*
|
|
16
23
|
* Downstream provider protocols (chat-completions / messages / gemini) do not
|
|
17
24
|
* understand the `namespace` tool type, so each inner tool is flattened into a
|
|
18
|
-
* top-level function tool whose name is namespaced as `<namespace>
|
|
19
|
-
* (e.g. `
|
|
20
|
-
* the name matches the provider's required pattern `^[a-zA-Z0-9_-]+$`.
|
|
25
|
+
* top-level function tool whose name is namespaced as `<namespace>___<tool>`
|
|
26
|
+
* (e.g. `agents___spawn_agent`). A triple-underscore separator is used (not a
|
|
27
|
+
* dot) so the name matches the provider's required pattern `^[a-zA-Z0-9_-]+$`.
|
|
21
28
|
*
|
|
22
29
|
* Non-namespace tools pass through untouched and the original order is
|
|
23
30
|
* preserved (a namespace expands in place). When no namespace tool is present
|
|
@@ -44,7 +51,7 @@ function expandNamespaceTools(tools) {
|
|
|
44
51
|
expanded.push({
|
|
45
52
|
...inner,
|
|
46
53
|
type: "function",
|
|
47
|
-
name: nsName ? `${nsName}
|
|
54
|
+
name: nsName ? `${nsName}${exports.NAMESPACE_SEPARATOR}${innerName}` : innerName,
|
|
48
55
|
});
|
|
49
56
|
}
|
|
50
57
|
continue;
|
|
@@ -53,3 +60,115 @@ function expandNamespaceTools(tools) {
|
|
|
53
60
|
}
|
|
54
61
|
return (hasNamespace ? expanded : tools);
|
|
55
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Split a flattened `<namespace>___<tool>` name back into its parts. Returns
|
|
65
|
+
* `{ name }` (no namespace) when the name is not namespaced.
|
|
66
|
+
*/
|
|
67
|
+
function splitNamespacedToolName(name) {
|
|
68
|
+
if (typeof name !== "string")
|
|
69
|
+
return { name };
|
|
70
|
+
const idx = name.indexOf(exports.NAMESPACE_SEPARATOR);
|
|
71
|
+
if (idx <= 0)
|
|
72
|
+
return { name };
|
|
73
|
+
const namespace = name.slice(0, idx);
|
|
74
|
+
const bare = name.slice(idx + exports.NAMESPACE_SEPARATOR.length);
|
|
75
|
+
if (!bare)
|
|
76
|
+
return { name };
|
|
77
|
+
return { namespace, name: bare };
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Reverse of {@link expandNamespaceTools}: re-nest flattened
|
|
81
|
+
* `<namespace>___<tool>` function tools back into `namespace` tools. Already
|
|
82
|
+
* nested namespace tools and non-namespaced tools pass through untouched;
|
|
83
|
+
* order is preserved (a namespace appears at its first member's position).
|
|
84
|
+
*/
|
|
85
|
+
function nestNamespaceTools(tools) {
|
|
86
|
+
if (!Array.isArray(tools))
|
|
87
|
+
return tools;
|
|
88
|
+
let changed = false;
|
|
89
|
+
const result = [];
|
|
90
|
+
const nsByName = new Map();
|
|
91
|
+
for (const tool of tools) {
|
|
92
|
+
const t = tool;
|
|
93
|
+
if (t && typeof t === "object" && t.type === "function" && typeof t.name === "string") {
|
|
94
|
+
const { namespace, name } = splitNamespacedToolName(t.name);
|
|
95
|
+
if (namespace) {
|
|
96
|
+
changed = true;
|
|
97
|
+
let ns = nsByName.get(namespace);
|
|
98
|
+
if (!ns) {
|
|
99
|
+
ns = { type: "namespace", name: namespace, tools: [] };
|
|
100
|
+
nsByName.set(namespace, ns);
|
|
101
|
+
result.push(ns);
|
|
102
|
+
}
|
|
103
|
+
ns.tools.push({ ...t, name });
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
result.push(tool);
|
|
108
|
+
}
|
|
109
|
+
return changed ? result : tools;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* If a function_call output item's `name` is a flattened `<namespace>___<tool>`,
|
|
113
|
+
* split it into a `namespace` field plus the bare `name`. Mutates in place.
|
|
114
|
+
*/
|
|
115
|
+
function denamespaceFunctionCallItem(item) {
|
|
116
|
+
if (!item || item.type !== "function_call" || typeof item.name !== "string")
|
|
117
|
+
return;
|
|
118
|
+
const { namespace, name } = splitNamespacedToolName(item.name);
|
|
119
|
+
if (namespace) {
|
|
120
|
+
item.name = name;
|
|
121
|
+
item.namespace = namespace;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Apply the reverse namespace transform to a full Responses response (mutates):
|
|
126
|
+
* split any namespaced `function_call` output items into `{ namespace, name }`
|
|
127
|
+
* and re-nest the echoed `tools` into namespace tools.
|
|
128
|
+
*/
|
|
129
|
+
function denamespaceResponse(resp) {
|
|
130
|
+
if (!resp || typeof resp !== "object")
|
|
131
|
+
return;
|
|
132
|
+
if (Array.isArray(resp.output)) {
|
|
133
|
+
for (const item of resp.output)
|
|
134
|
+
denamespaceFunctionCallItem(item);
|
|
135
|
+
}
|
|
136
|
+
if (Array.isArray(resp.tools)) {
|
|
137
|
+
resp.tools = nestNamespaceTools(resp.tools);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Apply the reverse namespace transform to a batch of streaming events
|
|
142
|
+
* (mutates in place, returns the same array). Covers function_call item events,
|
|
143
|
+
* function_call argument events, and terminal events carrying a full response.
|
|
144
|
+
*/
|
|
145
|
+
function denamespaceStreamEvents(events) {
|
|
146
|
+
for (const event of events) {
|
|
147
|
+
const e = event;
|
|
148
|
+
if (!e || typeof e !== "object")
|
|
149
|
+
continue;
|
|
150
|
+
switch (e.type) {
|
|
151
|
+
case "response.output_item.added":
|
|
152
|
+
case "response.output_item.done":
|
|
153
|
+
denamespaceFunctionCallItem(e.item);
|
|
154
|
+
break;
|
|
155
|
+
case "response.function_call_arguments.delta":
|
|
156
|
+
case "response.function_call_arguments.done": {
|
|
157
|
+
if (typeof e.name === "string") {
|
|
158
|
+
const { namespace, name } = splitNamespacedToolName(e.name);
|
|
159
|
+
if (namespace) {
|
|
160
|
+
e.name = name;
|
|
161
|
+
e.namespace = namespace;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
case "response.completed":
|
|
167
|
+
case "response.incomplete":
|
|
168
|
+
case "response.failed":
|
|
169
|
+
denamespaceResponse(e.response);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return events;
|
|
174
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenmux/rosetta-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Universal translator between AI provider protocols",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"typescript": "^6.0.2",
|
|
61
61
|
"typescript-eslint": "^8.58.2"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|