@caeliq/llms 1.0.62 → 1.0.64
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.
|
@@ -23,7 +23,7 @@ import { UnifiedChatRequest } from "../types/llm";
|
|
|
23
23
|
* Client → POST /v1/chat/completions
|
|
24
24
|
* → OpenAITransformer.transformRequestOut() // validate → Unified
|
|
25
25
|
* → provider.transformer.use[].transformRequestIn()
|
|
26
|
-
* → … → OpenAITransformer.transformResponseIn() //
|
|
26
|
+
* → … → OpenAITransformer.transformResponseIn() // reasoning_content; strip Unified thinking
|
|
27
27
|
*/
|
|
28
28
|
export declare class OpenAITransformer implements Transformer {
|
|
29
29
|
name: string;
|
|
@@ -6,6 +6,7 @@ export declare class OpencodeHeadersTransformer implements Transformer {
|
|
|
6
6
|
private lastTimestamp;
|
|
7
7
|
private counter;
|
|
8
8
|
transformRequestIn(request: any, provider: any, context: any): Promise<Record<string, any>>;
|
|
9
|
+
transformResponseOut(response: Response): Promise<Response>;
|
|
9
10
|
/**
|
|
10
11
|
* Own the full upstream call so a `No provider available` 401 can be retried
|
|
11
12
|
* with a fresh session in isolation. Any other non-ok response is re-thrown in
|
|
@@ -14,6 +15,8 @@ export declare class OpencodeHeadersTransformer implements Transformer {
|
|
|
14
15
|
* path unchanged.
|
|
15
16
|
*/
|
|
16
17
|
private sendWithSessionRetry;
|
|
18
|
+
private preserveZenStreamErrors;
|
|
19
|
+
private static zenStreamFailure;
|
|
17
20
|
private buildHeaders;
|
|
18
21
|
/**
|
|
19
22
|
* True only for the two Zen session-hash routing failures — a re-roll can
|
|
@@ -22,6 +25,9 @@ export declare class OpencodeHeadersTransformer implements Transformer {
|
|
|
22
25
|
* mistaken for routing failures and pass straight through.
|
|
23
26
|
*/
|
|
24
27
|
private isZenRoutingFailure;
|
|
28
|
+
private isZenTransientStatus;
|
|
29
|
+
private retryDelayMs;
|
|
30
|
+
private exponentialRetryDelayMs;
|
|
25
31
|
private retryAfterHeaders;
|
|
26
32
|
private fingerprintConversation;
|
|
27
33
|
private getOrCreateSessionId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caeliq/llms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"description": "A universal LLM API transformation server",
|
|
5
5
|
"main": "dist/cjs/server.cjs",
|
|
6
6
|
"module": "dist/esm/server.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@anthropic-ai/sdk": "^0.115.0",
|
|
33
|
-
"@caeliq/ccr-shared": "^2.1.
|
|
33
|
+
"@caeliq/ccr-shared": "^2.1.6",
|
|
34
34
|
"@cursor/sdk": "^1.0.28",
|
|
35
35
|
"@fastify/cors": "^11.3.0",
|
|
36
36
|
"@fastify/rate-limit": "^11.2.0",
|