@wengine-ai/llms 2.3.2391 → 2.3.2393
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.
|
@@ -12,7 +12,12 @@ import { Transformer, TransformerOptions } from "../types/transformer";
|
|
|
12
12
|
* resolved transformer is AnthropicTransformer would trigger bypass mode,
|
|
13
13
|
* sending Anthropic-format tools ({name,description,input_schema}) to an
|
|
14
14
|
* OpenAI-compatible API that requires {type:"function",function:{…}}.
|
|
15
|
-
* -
|
|
15
|
+
* - Preserves cache_control markers: the opencode zen upstream implements
|
|
16
|
+
* explicit prompt caching gated on Anthropic-style cache_control blocks
|
|
17
|
+
* (verified: a stable ~16k-token prefix with markers hits ~98% on the
|
|
18
|
+
* second identical request; without markers it never caches). Earlier
|
|
19
|
+
* versions stripped them on the assumption the backend ignored the field.
|
|
20
|
+
* - Cleans Anthropic-specific image_url media_type fields that GLM
|
|
16
21
|
* does not understand.
|
|
17
22
|
* - Converts reasoning_content in streaming/non-streaming responses to the
|
|
18
23
|
* thinking format expected by Claude Code.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wengine-ai/llms",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2393",
|
|
4
4
|
"description": "A universal LLM API transformation server",
|
|
5
5
|
"main": "dist/cjs/server.cjs",
|
|
6
6
|
"module": "dist/esm/server.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"uuid": "^11.1.0",
|
|
53
53
|
"@fastify/multipart": "^9.0.0",
|
|
54
54
|
"@fastify/static": "^8.2.0",
|
|
55
|
-
"@wengine-ai/claude-code-router-shared": "^2.3.
|
|
55
|
+
"@wengine-ai/claude-code-router-shared": "^2.3.2393",
|
|
56
56
|
"adm-zip": "^0.5.16",
|
|
57
57
|
"better-sqlite3": "^12.10.0",
|
|
58
58
|
"rotating-file-stream": "^3.2.7"
|