@openrouter/sdk 1.2.66 → 1.2.67
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/esm/lib/config.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
50
50
|
export declare const SDK_METADATA: {
|
|
51
51
|
readonly language: "typescript";
|
|
52
52
|
readonly openapiDocVersion: "1.0.0";
|
|
53
|
-
readonly sdkVersion: "1.2.
|
|
53
|
+
readonly sdkVersion: "1.2.67";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.67 2.914.0 1.0.0 @openrouter/sdk";
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
export const SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "1.2.
|
|
32
|
+
sdkVersion: "1.2.67",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.67 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -82,6 +82,9 @@ export type PublicEndpoint = {
|
|
|
82
82
|
* Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.
|
|
83
83
|
*/
|
|
84
84
|
latencyLast30m: PercentileStats | null;
|
|
85
|
+
/**
|
|
86
|
+
* Maximum completion tokens for this endpoint. Input and output tokens share the context window, so the effective maximum output for a request is further limited by the context remaining after input tokens.
|
|
87
|
+
*/
|
|
85
88
|
maxCompletionTokens: number | null;
|
|
86
89
|
maxPromptTokens: number | null;
|
|
87
90
|
/**
|
|
@@ -14,7 +14,7 @@ export type TopProviderInfo = {
|
|
|
14
14
|
*/
|
|
15
15
|
isModerated: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* Maximum completion tokens from the top provider
|
|
17
|
+
* Maximum completion tokens from the top provider. Input and output tokens share the context window, so the effective maximum output for a request is further limited by the context remaining after input tokens.
|
|
18
18
|
*/
|
|
19
19
|
maxCompletionTokens?: number | null | undefined;
|
|
20
20
|
};
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.67",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"postinstall": "node scripts/check-types.js || true",
|
|
77
77
|
"prepare": "npm run build",
|
|
78
78
|
"test": "vitest --run --project unit",
|
|
79
|
+
"test:e2e": "vitest --run --project e2e",
|
|
79
80
|
"test:transit": "exit 0",
|
|
80
|
-
"
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
81
82
|
"typecheck:transit": "exit 0",
|
|
82
83
|
"compile": "tsc",
|
|
83
|
-
"test:
|
|
84
|
-
"typecheck": "tsc --noEmit"
|
|
84
|
+
"test:watch": "vitest --watch --project unit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|