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 +1 -1
- package/src/consumer-runtime.mjs +3 -4
- package/src/consumer.mjs +1 -1
package/package.json
CHANGED
package/src/consumer-runtime.mjs
CHANGED
|
@@ -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
|
-
|
|
365
|
-
|
|
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.
|
|
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",
|