@iicp/client 0.7.101 → 0.7.103
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/LICENSE +83 -61
- package/README.md +19 -2
- package/dist/backends/openai_compat.d.ts +3 -0
- package/dist/backends/openai_compat.d.ts.map +1 -1
- package/dist/backends/openai_compat.js +119 -0
- package/dist/backends/openai_compat.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +236 -34
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +26 -3
- package/dist/client.js.map +1 -1
- package/dist/iicp_tcp.d.ts +38 -0
- package/dist/iicp_tcp.d.ts.map +1 -1
- package/dist/iicp_tcp.js +164 -0
- package/dist/iicp_tcp.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp_negotiation.d.ts.map +1 -1
- package/dist/mcp_negotiation.js +13 -0
- package/dist/mcp_negotiation.js.map +1 -1
- package/dist/native_call_identity.d.ts +12 -0
- package/dist/native_call_identity.d.ts.map +1 -0
- package/dist/native_call_identity.js +44 -0
- package/dist/native_call_identity.js.map +1 -0
- package/dist/native_response_sequence.d.ts +32 -0
- package/dist/native_response_sequence.d.ts.map +1 -0
- package/dist/native_response_sequence.js +59 -0
- package/dist/native_response_sequence.js.map +1 -0
- package/dist/node.d.ts +5 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +59 -7
- package/dist/node.js.map +1 -1
- package/dist/operator_profile.d.ts +18 -0
- package/dist/operator_profile.d.ts.map +1 -0
- package/dist/operator_profile.js +22 -0
- package/dist/operator_profile.js.map +1 -0
- package/dist/relay_session.d.ts +16 -4
- package/dist/relay_session.d.ts.map +1 -1
- package/dist/relay_session.js +116 -1
- package/dist/relay_session.js.map +1 -1
- package/dist/runtime_health.d.ts +77 -0
- package/dist/runtime_health.d.ts.map +1 -0
- package/dist/runtime_health.js +65 -0
- package/dist/runtime_health.js.map +1 -0
- package/dist/selection.d.ts +32 -0
- package/dist/selection.d.ts.map +1 -1
- package/dist/selection.js +54 -0
- package/dist/selection.js.map +1 -1
- package/dist/service.d.ts +7 -0
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +44 -0
- package/dist/service.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -4
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -32,33 +33,36 @@
|
|
|
32
33
|
not limited to compiled object code, generated documentation,
|
|
33
34
|
and conversions to other media types.
|
|
34
35
|
|
|
35
|
-
"Work" shall mean the work of authorship
|
|
36
|
-
the License, as indicated by a
|
|
37
|
-
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
38
40
|
|
|
39
41
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
42
|
form, that is based on (or derived from) the Work and for which the
|
|
41
|
-
editorial revisions, annotations, elaborations, or other
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
44
|
represent, as a whole, an original work of authorship. For the purposes
|
|
43
45
|
of this License, Derivative Works shall not include works that remain
|
|
44
46
|
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
-
the Work and
|
|
46
|
-
|
|
47
|
-
"Contribution" shall mean
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
or
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
62
66
|
|
|
63
67
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
64
68
|
this License, each Contributor hereby grants to You a perpetual,
|
|
@@ -74,21 +78,22 @@
|
|
|
74
78
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
75
79
|
where such license applies only to those patent claims licensable
|
|
76
80
|
by such Contributor that are necessarily infringed by their
|
|
77
|
-
Contribution(s) alone or
|
|
78
|
-
Contribution(s) was submitted. If You
|
|
79
|
-
against any entity (including a
|
|
80
|
-
lawsuit) alleging that the Work
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
84
89
|
|
|
85
90
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
86
91
|
Work or Derivative Works thereof in any medium, with or without
|
|
87
92
|
modifications, and in Source or Object form, provided that You
|
|
88
93
|
meet the following conditions:
|
|
89
94
|
|
|
90
|
-
(a) You must give any other recipients of the Work or
|
|
91
|
-
Works a copy of this License; and
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
92
97
|
|
|
93
98
|
(b) You must cause any modified files to carry prominent notices
|
|
94
99
|
stating that You changed the files; and
|
|
@@ -100,25 +105,28 @@
|
|
|
100
105
|
the Derivative Works; and
|
|
101
106
|
|
|
102
107
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
103
|
-
distribution,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
the
|
|
108
|
-
Derivative Works;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
122
130
|
|
|
123
131
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
124
132
|
any Contribution intentionally submitted for inclusion in the Work
|
|
@@ -137,10 +145,10 @@
|
|
|
137
145
|
agreed to in writing, Licensor provides the Work (and each
|
|
138
146
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
139
147
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
140
|
-
implied, including, without limitation, any
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
appropriateness of using or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
144
152
|
risks associated with Your exercise of permissions under this License.
|
|
145
153
|
|
|
146
154
|
8. Limitation of Liability. In no event and under no legal theory,
|
|
@@ -148,24 +156,38 @@
|
|
|
148
156
|
unless required by applicable law (such as deliberate and grossly
|
|
149
157
|
negligent acts) or agreed to in writing, shall any Contributor be
|
|
150
158
|
liable to You for damages, including any direct, indirect, special,
|
|
151
|
-
incidental, or
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
152
160
|
result of this License or out of the use or inability to use the
|
|
153
161
|
Work (including but not limited to damages for loss of goodwill,
|
|
154
|
-
work stoppage, computer failure or malfunction, or all
|
|
155
|
-
commercial damages or losses), even if such Contributor
|
|
156
|
-
advised of the possibility of such damages.
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
157
165
|
|
|
158
166
|
9. Accepting Warranty or Additional Liability. While redistributing
|
|
159
167
|
the Work or Derivative Works thereof, You may choose to offer,
|
|
160
168
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
161
169
|
or other liability obligations and/or rights consistent with this
|
|
162
|
-
License. However, in accepting such obligations, You may
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
165
176
|
|
|
166
177
|
END OF TERMS AND CONDITIONS
|
|
167
178
|
|
|
168
|
-
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
169
191
|
|
|
170
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
171
193
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ What good looks like:
|
|
|
39
39
|
```bash
|
|
40
40
|
iicp-node --help # shows query, serve, proxy, mcp-gateway, credits, ...
|
|
41
41
|
which iicp-node # points to your Node/npm environment
|
|
42
|
-
iicp-node --version # prints iicp-node 0.7.
|
|
42
|
+
iicp-node --version # prints iicp-node 0.7.103 or newer
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
The query command contacts the public directory, discovers a matching live node,
|
|
@@ -123,6 +123,23 @@ not silently fall back to anonymous dispatch if consumer-token acquisition
|
|
|
123
123
|
fails. The default remains `"optional"`; `"disabled"` skips token
|
|
124
124
|
acquisition.
|
|
125
125
|
|
|
126
|
+
### Experimental local candidate rankers
|
|
127
|
+
|
|
128
|
+
Library users may attach a `CandidateRanker` to test a learned or
|
|
129
|
+
application-specific ordering policy. The client invokes it only after normal
|
|
130
|
+
endpoint, availability, confidentiality and routing-policy checks. It receives
|
|
131
|
+
a redacted `CandidateEvidenceV0` array and may select one listed reference or
|
|
132
|
+
decline. Decline preserves the configured built-in strategy; a rejection or
|
|
133
|
+
unknown reference fails before provider dispatch.
|
|
134
|
+
|
|
135
|
+
```ts
|
|
136
|
+
const client = new IicpClient(config).withCandidateRanker(myRanker);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
TypeScript, Python and Rust test the same experimental behavior fixture. This
|
|
140
|
+
is not a wire profile or default. The SDK never sends request content to an
|
|
141
|
+
external evaluator automatically.
|
|
142
|
+
|
|
126
143
|
## Migrate from existing AI tools
|
|
127
144
|
|
|
128
145
|
Direct call:
|
|
@@ -148,7 +165,7 @@ base URL. Full guide: <https://iicp.network/docs/proxy>
|
|
|
148
165
|
|
|
149
166
|
## Keep provider nodes current
|
|
150
167
|
|
|
151
|
-
The current public release line is **0.7.
|
|
168
|
+
The current public release line is **0.7.103**. Upgrade through your package
|
|
152
169
|
manager before troubleshooting an older installation. Routing profiles can
|
|
153
170
|
refuse remote dispatch before a prompt leaves the client; use `sensitive` for
|
|
154
171
|
local-only work, `eu-restricted` for EU/EEA routing, or `strict-policy` when a
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* urn:iicp:intent:llm:embedding:v1 → /embeddings
|
|
20
20
|
*/
|
|
21
21
|
import { type BackendHandler, type TaskHandlerInput, type TaskHandlerOutput } from "./base.js";
|
|
22
|
+
import type { TcpStreamingHandler } from "../iicp_tcp.js";
|
|
22
23
|
export interface OpenAiCompatOptions {
|
|
23
24
|
/** Provider HTTP root (no trailing slash needed). Default: Ollama `http://localhost:11434/v1`. */
|
|
24
25
|
baseUrl?: string;
|
|
@@ -31,4 +32,6 @@ export interface OpenAiCompatOptions {
|
|
|
31
32
|
}
|
|
32
33
|
export type { TaskHandlerInput, TaskHandlerOutput };
|
|
33
34
|
export declare function openaiCompatHandler(opts?: OpenAiCompatOptions): BackendHandler;
|
|
35
|
+
/** Genuine opt-in SSE streaming for OpenAI-compatible chat/completion backends. */
|
|
36
|
+
export declare function openaiCompatStreamingHandler(opts?: OpenAiCompatOptions): TcpStreamingHandler;
|
|
34
37
|
//# sourceMappingURL=openai_compat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai_compat.d.ts","sourceRoot":"","sources":["../../src/backends/openai_compat.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"openai_compat.d.ts","sourceRoot":"","sources":["../../src/backends/openai_compat.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,mBAAwB,GAAG,cAAc,CAQlF;AAED,mFAAmF;AACnF,wBAAgB,4BAA4B,CAAC,IAAI,GAAE,mBAAwB,GAAG,mBAAmB,CAgHhG"}
|
|
@@ -22,8 +22,127 @@
|
|
|
22
22
|
*/
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.openaiCompatHandler = openaiCompatHandler;
|
|
25
|
+
exports.openaiCompatStreamingHandler = openaiCompatStreamingHandler;
|
|
25
26
|
const base_js_1 = require("./base.js");
|
|
26
27
|
function openaiCompatHandler(opts = {}) {
|
|
27
28
|
return (0, base_js_1.buildOpenAiDialectHandler)("openai_compat", opts.baseUrl ?? "http://localhost:11434/v1", opts.model, opts.apiKey ?? "", opts.timeoutMs ?? 30000);
|
|
28
29
|
}
|
|
30
|
+
/** Genuine opt-in SSE streaming for OpenAI-compatible chat/completion backends. */
|
|
31
|
+
function openaiCompatStreamingHandler(opts = {}) {
|
|
32
|
+
const base = (opts.baseUrl ?? "http://localhost:11434/v1").replace(/\/$/, "");
|
|
33
|
+
const headers = { "content-type": "application/json" };
|
|
34
|
+
if (opts.apiKey)
|
|
35
|
+
headers.authorization = `Bearer ${opts.apiKey}`;
|
|
36
|
+
return async function* (task) {
|
|
37
|
+
const path = task.intent === "urn:iicp:intent:llm:chat:v1" ? "/chat/completions"
|
|
38
|
+
: task.intent === "urn:iicp:intent:llm:completion:v1" ? "/completions" : null;
|
|
39
|
+
if (!path) {
|
|
40
|
+
yield { status: "error", error_code: "unsupported_streaming_intent", error_message: "openai_compat: streaming is limited to chat and completion intents" };
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const body = { ...task.payload, model: task.payload.model ?? opts.model, stream: true,
|
|
44
|
+
stream_options: task.payload.stream_options ?? { include_usage: true } };
|
|
45
|
+
if (!body.model) {
|
|
46
|
+
yield { status: "error", error_code: "missing_model", error_message: "openai_compat: no model configured" };
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const controller = new AbortController();
|
|
50
|
+
const timer = setTimeout(() => controller.abort(), opts.timeoutMs ?? 30_000);
|
|
51
|
+
let tokensUsed;
|
|
52
|
+
let reader;
|
|
53
|
+
try {
|
|
54
|
+
const response = await fetch(`${base}${path}`, {
|
|
55
|
+
method: "POST", headers, body: JSON.stringify(body), signal: controller.signal,
|
|
56
|
+
});
|
|
57
|
+
if (!response.ok) {
|
|
58
|
+
yield { status: "error", error_code: `upstream_${response.status}`,
|
|
59
|
+
error_message: `openai_compat: upstream ${response.status}: ${(await response.text()).slice(0, 512)}` };
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (!response.body) {
|
|
63
|
+
yield { status: "error", error_code: "invalid_backend_stream", error_message: "openai_compat: upstream returned no stream body" };
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
67
|
+
let buffer = "";
|
|
68
|
+
let output = "";
|
|
69
|
+
let flushDeadline = 0;
|
|
70
|
+
let pendingRead = reader.read();
|
|
71
|
+
while (true) {
|
|
72
|
+
const read = output
|
|
73
|
+
? await new Promise((resolve, reject) => {
|
|
74
|
+
const timer = setTimeout(() => resolve({ kind: "flush" }), Math.max(0, flushDeadline - performance.now()));
|
|
75
|
+
pendingRead.then((value) => { clearTimeout(timer); resolve({ kind: "read", value }); }, (error) => { clearTimeout(timer); reject(error); });
|
|
76
|
+
})
|
|
77
|
+
: { kind: "read", value: await pendingRead };
|
|
78
|
+
if (read.kind === "flush") {
|
|
79
|
+
yield { status: "partial", result: output, ...(tokensUsed === undefined ? {} : { tokens_used: tokensUsed }) };
|
|
80
|
+
output = "";
|
|
81
|
+
flushDeadline = 0;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
const { value, done } = read.value;
|
|
85
|
+
if (!done)
|
|
86
|
+
pendingRead = reader.read();
|
|
87
|
+
buffer += value ?? "";
|
|
88
|
+
const lines = buffer.split(/\r?\n/);
|
|
89
|
+
buffer = lines.pop() ?? "";
|
|
90
|
+
for (const line of lines) {
|
|
91
|
+
if (!line.startsWith("data:"))
|
|
92
|
+
continue;
|
|
93
|
+
const data = line.slice(5).trim();
|
|
94
|
+
if (data === "[DONE]") {
|
|
95
|
+
if (output) {
|
|
96
|
+
yield { status: "partial", result: output, ...(tokensUsed === undefined ? {} : { tokens_used: tokensUsed }) };
|
|
97
|
+
}
|
|
98
|
+
yield { status: "success", result: "", ...(tokensUsed === undefined ? {} : { tokens_used: tokensUsed }) };
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (!data)
|
|
102
|
+
continue;
|
|
103
|
+
let chunk;
|
|
104
|
+
try {
|
|
105
|
+
chunk = JSON.parse(data);
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
yield { status: "error", error_code: "invalid_backend_stream", error_message: "openai_compat: upstream emitted invalid SSE JSON" };
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const usage = chunk.usage;
|
|
112
|
+
if (typeof usage?.total_tokens === "number")
|
|
113
|
+
tokensUsed = usage.total_tokens;
|
|
114
|
+
const first = Array.isArray(chunk.choices) ? chunk.choices[0] : undefined;
|
|
115
|
+
const delta = first?.delta;
|
|
116
|
+
const text = task.intent.endsWith(":chat:v1") ? delta?.content : first?.text;
|
|
117
|
+
if (typeof text === "string" && text) {
|
|
118
|
+
if (!output)
|
|
119
|
+
flushDeadline = performance.now() + 25;
|
|
120
|
+
output += text;
|
|
121
|
+
if (Buffer.byteLength(output, "utf8") >= 256) {
|
|
122
|
+
yield { status: "partial", result: output, ...(tokensUsed === undefined ? {} : { tokens_used: tokensUsed }) };
|
|
123
|
+
output = "";
|
|
124
|
+
flushDeadline = 0;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (done) {
|
|
129
|
+
if (output) {
|
|
130
|
+
yield { status: "partial", result: output, ...(tokensUsed === undefined ? {} : { tokens_used: tokensUsed }) };
|
|
131
|
+
}
|
|
132
|
+
yield { status: "error", error_code: "stream_incomplete", error_message: "openai_compat: upstream closed before [DONE]" };
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
yield error instanceof DOMException && error.name === "AbortError"
|
|
139
|
+
? { status: "timeout", error_code: "backend_timeout", error_message: "openai_compat: backend timed out" }
|
|
140
|
+
: { status: "error", error_code: "backend_transport_error", error_message: "openai_compat: backend transport failed" };
|
|
141
|
+
}
|
|
142
|
+
finally {
|
|
143
|
+
clearTimeout(timer);
|
|
144
|
+
await reader?.cancel().catch(() => undefined);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
29
148
|
//# sourceMappingURL=openai_compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai_compat.js","sourceRoot":"","sources":["../../src/backends/openai_compat.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC;;;;;;;;;;;;;;;;;;;GAmBG;;
|
|
1
|
+
{"version":3,"file":"openai_compat.js","sourceRoot":"","sources":["../../src/backends/openai_compat.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC;;;;;;;;;;;;;;;;;;;GAmBG;;AAuBH,kDAQC;AAGD,oEAgHC;AAhJD,uCAKmB;AAgBnB,SAAgB,mBAAmB,CAAC,OAA4B,EAAE;IAChE,OAAO,IAAA,mCAAyB,EAC9B,eAAe,EACf,IAAI,CAAC,OAAO,IAAI,2BAA2B,EAC3C,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,MAAM,IAAI,EAAE,EACjB,IAAI,CAAC,SAAS,IAAI,KAAK,CACxB,CAAC;AACJ,CAAC;AAED,mFAAmF;AACnF,SAAgB,4BAA4B,CAAC,OAA4B,EAAE;IACzE,MAAM,IAAI,GAAG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AAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,KAAK,YAAY,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,YAAY;gBAChE,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,aAAa,EAAE,kCAAkC,EAAE;gBACzG,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,aAAa,EAAE,yCAAyC,EAAE,CAAC;QAC3H,CAAC;gBAAS,CAAC;YACT,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAChD,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAkDA,OAAO,EAeL,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAavB,KAAK,aAAa,GAAG,cAAc,cAAc,CAAC,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,yBAA8B,GAAG,MAAM,IAAI,CA+C3F;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,EA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