@compresr/sdk 1.6.8 → 1.6.9

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -27,7 +27,7 @@ console.log(`Saved ${result.data?.tokens_saved} tokens`);
27
27
  console.log(result.data?.compressed_context);
28
28
  ```
29
29
 
30
- The default model is `latte_v1` (query-aware). Pass any other model name your
30
+ The default model is `latte_v2` (query-aware). Pass any other model name your
31
31
  account has access to via `compressionModelName: '...'` — the backend
32
32
  validates.
33
33
 
@@ -88,7 +88,7 @@ for await (const chunk of client.compressStream({
88
88
 
89
89
  | Param | Purpose |
90
90
  |---|---|
91
- | `query` | Question the LLM is trying to answer — drives `latte_v1` compression |
91
+ | `query` | Question the LLM is trying to answer — drives `latte_v2` compression |
92
92
  | `targetCompressionRatio` | `0-1` strength or `>1` for Nx factor (max 200) |
93
93
  | `coarse` | `true` = paragraph-level (default, faster); `false` = token-level (fine-grained) |
94
94
  | `heuristicChunking` | Structure-preserving chunking |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compresr/sdk",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "TypeScript SDK for Compresr - Intelligent context compression to reduce LLM API costs by 30-70%",
5
5
  "author": "Compresr Team <founders@compresr.ai>",
6
6
  "license": "Apache-2.0",
@@ -169,9 +169,9 @@
169
169
  "@langchain/langgraph": "^1.3.2",
170
170
  "@langchain/openai": "^1.4.7",
171
171
  "@langchain/tavily": "^1.2.0",
172
- "@types/node": "^25.9.1",
173
- "@typescript-eslint/eslint-plugin": "^8.60.1",
174
- "@typescript-eslint/parser": "^8.60.1",
172
+ "@types/node": "^25.9.3",
173
+ "@typescript-eslint/eslint-plugin": "^8.61.0",
174
+ "@typescript-eslint/parser": "^8.61.0",
175
175
  "@vitest/coverage-v8": "^4.1.8",
176
176
  "dotenv": "^16.4.0",
177
177
  "eslint": "^10.4.1",
@@ -181,7 +181,7 @@
181
181
  "msw": "^2.2.0",
182
182
  "openai": "^6.42.0",
183
183
  "tsx": "^4.22.3",
184
- "typescript": "^5.4.0",
184
+ "typescript": "^6.0.3",
185
185
  "typescript-eslint": "^8.60.1",
186
186
  "vitest": "^4.1.8"
187
187
  }