mycomesh-consumer 0.1.38 → 0.1.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mycomesh-consumer",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Native Node.js MycoMesh Consumer and OpenAI-compatible request CLI.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -361,10 +361,9 @@ function normalizeInferenceOptions(endpoint, options) {
361
361
  Object.entries(options).filter(([key]) => !RESPONSES_LOCAL_OPTION_FIELDS.has(key)),
362
362
  );
363
363
  if (endpoint !== "responses") {
364
- if (Object.keys(requestOptions).length) {
365
- throw new Error("inference request options are supported only for responses");
366
- }
367
- return null;
364
+ const unknown = Object.keys(requestOptions).filter((key) => !RESPONSES_REQUEST_OPTION_FIELDS.has(key)).sort();
365
+ if (unknown.length) throw new Error(`unsupported Chat request options: ${unknown.join(", ")}`);
366
+ return Object.keys(requestOptions).length ? requestOptions : null;
368
367
  }
369
368
  const allowed = new Set([...RESPONSES_REQUEST_OPTION_FIELDS, ...RESPONSES_LOCAL_OPTION_FIELDS]);
370
369
  const unknown = Object.keys(options).filter((key) => !allowed.has(key)).sort();
package/src/consumer.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  createConsumerServer,
12
12
  } from "./consumer-runtime.mjs";
13
13
 
14
- export const CONSUMER_RELEASE_VERSION = "0.1.38";
14
+ export const CONSUMER_RELEASE_VERSION = "0.1.39";
15
15
  export const API_COMMANDS = new Set(["health", "models", "responses", "chat"]);
16
16
  const API_VALUE_OPTIONS = new Set([
17
17
  "--base-url",