@infersec/conduit 1.97.3 → 1.98.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
@@ -122307,16 +122307,17 @@ const DOWNLOAD_PROGRESS_TIMEOUT = 60000;
122307
122307
  const DOWNLOAD_RETRY_ATTEMPTS_FULL = 3;
122308
122308
  const DOWNLOAD_RETRY_ATTEMPTS_RANGE = 10;
122309
122309
  const ALLOWED_EXTENSIONS = new Set([
122310
+ ".bin",
122311
+ ".gguf",
122310
122312
  ".gitattributes",
122313
+ ".jinja",
122311
122314
  ".json",
122312
122315
  ".merges",
122313
122316
  ".model",
122314
122317
  ".py",
122315
122318
  ".safetensors",
122316
122319
  ".tiktoken",
122317
- ".txt",
122318
- ".bin",
122319
- ".gguf"
122320
+ ".txt"
122320
122321
  ]);
122321
122322
  function isAllowedFile(filePath) {
122322
122323
  const lower = filePath.toLowerCase();
@@ -124186,12 +124187,17 @@ function serializeRequestBody$1(body) {
124186
124187
  };
124187
124188
  }
124188
124189
  const requestPayload = { ...body };
124189
- const streamOptions = requestPayload.stream_options;
124190
- const normalizedStreamOptions = isPlainObject$3(streamOptions)
124191
- ? { ...streamOptions }
124192
- : {};
124193
- normalizedStreamOptions.include_usage = true;
124194
- requestPayload.stream_options = normalizedStreamOptions;
124190
+ if (requestPayload.stream === true) {
124191
+ const streamOptions = requestPayload.stream_options;
124192
+ const normalizedStreamOptions = isPlainObject$3(streamOptions)
124193
+ ? { ...streamOptions }
124194
+ : {};
124195
+ normalizedStreamOptions.include_usage = true;
124196
+ requestPayload.stream_options = normalizedStreamOptions;
124197
+ }
124198
+ else {
124199
+ delete requestPayload.stream_options;
124200
+ }
124195
124201
  if (requestPayload.repetition_penalty === undefined) {
124196
124202
  requestPayload.repetition_penalty = 1.1;
124197
124203
  }
package/dist/cli.sea.cjs CHANGED
@@ -122322,16 +122322,17 @@ const DOWNLOAD_PROGRESS_TIMEOUT = 60000;
122322
122322
  const DOWNLOAD_RETRY_ATTEMPTS_FULL = 3;
122323
122323
  const DOWNLOAD_RETRY_ATTEMPTS_RANGE = 10;
122324
122324
  const ALLOWED_EXTENSIONS = new Set([
122325
+ ".bin",
122326
+ ".gguf",
122325
122327
  ".gitattributes",
122328
+ ".jinja",
122326
122329
  ".json",
122327
122330
  ".merges",
122328
122331
  ".model",
122329
122332
  ".py",
122330
122333
  ".safetensors",
122331
122334
  ".tiktoken",
122332
- ".txt",
122333
- ".bin",
122334
- ".gguf"
122335
+ ".txt"
122335
122336
  ]);
122336
122337
  function isAllowedFile(filePath) {
122337
122338
  const lower = filePath.toLowerCase();
@@ -124201,12 +124202,17 @@ function serializeRequestBody$1(body) {
124201
124202
  };
124202
124203
  }
124203
124204
  const requestPayload = { ...body };
124204
- const streamOptions = requestPayload.stream_options;
124205
- const normalizedStreamOptions = isPlainObject$3(streamOptions)
124206
- ? { ...streamOptions }
124207
- : {};
124208
- normalizedStreamOptions.include_usage = true;
124209
- requestPayload.stream_options = normalizedStreamOptions;
124205
+ if (requestPayload.stream === true) {
124206
+ const streamOptions = requestPayload.stream_options;
124207
+ const normalizedStreamOptions = isPlainObject$3(streamOptions)
124208
+ ? { ...streamOptions }
124209
+ : {};
124210
+ normalizedStreamOptions.include_usage = true;
124211
+ requestPayload.stream_options = normalizedStreamOptions;
124212
+ }
124213
+ else {
124214
+ delete requestPayload.stream_options;
124215
+ }
124210
124216
  if (requestPayload.repetition_penalty === undefined) {
124211
124217
  requestPayload.repetition_penalty = 1.1;
124212
124218
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infersec/conduit",
3
3
  "description": "End user conduit agent for connecting local LLMs to the cloud.",
4
- "version": "1.97.3",
4
+ "version": "1.98.1",
5
5
  "bin": {
6
6
  "infersec-conduit": "./dist/cli.js"
7
7
  },