@opencompress/opencompress 1.6.5 → 1.6.6
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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
|
-
var VERSION = "1.6.
|
|
9
|
+
var VERSION = "1.6.6";
|
|
10
10
|
var DEFAULT_BASE_URL = "https://www.opencompress.ai/api";
|
|
11
11
|
function getApiKey(api) {
|
|
12
12
|
const auth = api.config.auth;
|
|
@@ -377,7 +377,7 @@ var plugin = {
|
|
|
377
377
|
name: "OpenCompress",
|
|
378
378
|
description: "5-layer prompt compression \u2014 53% input reduction, 62% latency cut, 96% quality",
|
|
379
379
|
version: VERSION,
|
|
380
|
-
|
|
380
|
+
register(api) {
|
|
381
381
|
const baseUrl = api.pluginConfig?.baseUrl || DEFAULT_BASE_URL;
|
|
382
382
|
const existingHeaders = api.config.models?.providers?.opencompress?.headers;
|
|
383
383
|
const existingUpstreamKey = existingHeaders?.["X-Upstream-Key"];
|