@infersec/conduit 1.18.0 → 1.19.1
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/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ const __dirname = __pathDirname(__filename);
|
|
|
6
6
|
|
|
7
7
|
import { parseArgs } from 'node:util';
|
|
8
8
|
import 'node:crypto';
|
|
9
|
-
import { a as asError, s as startInferenceAgent } from './start-
|
|
9
|
+
import { a as asError, s as startInferenceAgent } from './start-CopKwPN6.js';
|
|
10
10
|
import 'argon2';
|
|
11
11
|
import 'node:child_process';
|
|
12
12
|
import 'node:stream';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
5
5
|
const __dirname = __pathDirname(__filename);
|
|
6
6
|
|
|
7
7
|
import 'node:crypto';
|
|
8
|
-
import { s as startInferenceAgent, a as asError } from './start-
|
|
8
|
+
import { s as startInferenceAgent, a as asError } from './start-CopKwPN6.js';
|
|
9
9
|
import 'argon2';
|
|
10
10
|
import 'node:child_process';
|
|
11
11
|
import 'node:stream';
|
|
@@ -118175,10 +118175,17 @@ async function proxyOpenAIStreamingRoute({ body, configuration, logger, modelID,
|
|
|
118175
118175
|
error: responseError,
|
|
118176
118176
|
requestUrl: path,
|
|
118177
118177
|
statusCode: response.status,
|
|
118178
|
-
statusText: responseStatusText
|
|
118178
|
+
statusText: responseStatusText,
|
|
118179
|
+
responseBody: responseBody ?? undefined
|
|
118179
118180
|
});
|
|
118181
|
+
if (!response.body) {
|
|
118182
|
+
return {
|
|
118183
|
+
status: response.status,
|
|
118184
|
+
statusText: responseStatusText
|
|
118185
|
+
};
|
|
118186
|
+
}
|
|
118180
118187
|
}
|
|
118181
|
-
if (!response.body
|
|
118188
|
+
if (!response.body) {
|
|
118182
118189
|
logEngineMetrics({
|
|
118183
118190
|
agentEngineType: configuration.agentEngineType,
|
|
118184
118191
|
level: response.ok ? "info" : "error",
|