@infersec/conduit 1.17.1 → 1.17.3
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{start-Cf1W68Pz.js → start-CP94v_Uv.js} +14 -1
- package/package.json +1 -1
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-CP94v_Uv.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-CP94v_Uv.js';
|
|
9
9
|
import 'argon2';
|
|
10
10
|
import 'node:child_process';
|
|
11
11
|
import 'node:stream';
|
|
@@ -118015,6 +118015,19 @@ async function proxyOpenAIStreamingRoute({ body, configuration, logger, modelMan
|
|
|
118015
118015
|
});
|
|
118016
118016
|
throw error;
|
|
118017
118017
|
});
|
|
118018
|
+
const responseStatusText = response.statusText ?? "Upstream request failed";
|
|
118019
|
+
if (!response.ok) {
|
|
118020
|
+
const responseBody = await response.text().catch(() => null);
|
|
118021
|
+
const responseError = new Error(responseBody
|
|
118022
|
+
? `Upstream error response: ${responseBody}`
|
|
118023
|
+
: "Upstream error response: empty body");
|
|
118024
|
+
logger.error("LLM engine request failed", {
|
|
118025
|
+
error: responseError,
|
|
118026
|
+
requestUrl: path,
|
|
118027
|
+
statusCode: response.status,
|
|
118028
|
+
statusText: responseStatusText
|
|
118029
|
+
});
|
|
118030
|
+
}
|
|
118018
118031
|
if (!response.body || !response.ok) {
|
|
118019
118032
|
logEngineMetrics({
|
|
118020
118033
|
agentEngineType: configuration.agentEngineType,
|
|
@@ -118034,7 +118047,7 @@ async function proxyOpenAIStreamingRoute({ body, configuration, logger, modelMan
|
|
|
118034
118047
|
});
|
|
118035
118048
|
return {
|
|
118036
118049
|
status: response.status,
|
|
118037
|
-
statusText:
|
|
118050
|
+
statusText: responseStatusText
|
|
118038
118051
|
};
|
|
118039
118052
|
}
|
|
118040
118053
|
const monitoredResponse = monitorEngineResponseStream({
|