mycomesh-consumer 0.1.48 → 0.1.49
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 +1 -1
- package/src/consumer.mjs +1 -1
package/package.json
CHANGED
package/src/consumer-runtime.mjs
CHANGED
|
@@ -1268,7 +1268,7 @@ export function createConsumerServer(state, { host = "127.0.0.1", port = 8110, p
|
|
|
1268
1268
|
const server = createServer(async (request, response) => {
|
|
1269
1269
|
try {
|
|
1270
1270
|
const url = new URL(request.url || "/", `http://${request.headers.host || "127.0.0.1"}`);
|
|
1271
|
-
const path = url.pathname;
|
|
1271
|
+
const path = url.pathname.startsWith("/v1/v1/") ? url.pathname.slice(3) : url.pathname;
|
|
1272
1272
|
if (publicOnly) {
|
|
1273
1273
|
response.setHeader("Access-Control-Allow-Origin", "*");
|
|
1274
1274
|
response.setHeader("Access-Control-Allow-Headers", "Authorization, Content-Type");
|
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.49";
|
|
15
15
|
export const API_COMMANDS = new Set(["health", "models", "responses", "chat"]);
|
|
16
16
|
const API_VALUE_OPTIONS = new Set([
|
|
17
17
|
"--base-url",
|