@openrouter/sdk 1.2.80 → 1.2.82
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 +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/byokproviderslug.d.ts +2 -0
- package/esm/models/byokproviderslug.js +2 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
- package/esm/models/imagegenerationproviderpreferences.js +2 -0
- package/esm/models/operations/listbyokkeys.d.ts +2 -0
- package/esm/models/operations/listbyokkeys.js +2 -0
- package/esm/models/providername.d.ts +2 -0
- package/esm/models/providername.js +2 -0
- package/esm/models/provideroptions.d.ts +12 -0
- package/esm/models/provideroptions.js +2 -0
- package/esm/models/providerresponse.d.ts +2 -0
- package/esm/models/providerresponse.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +12 -0
- package/esm/models/videogenerationrequest.js +2 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
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.82";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.82 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.82",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.82 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -27,6 +27,7 @@ export declare const BYOKProviderSlug: {
|
|
|
27
27
|
readonly Cloudflare: "cloudflare";
|
|
28
28
|
readonly Cohere: "cohere";
|
|
29
29
|
readonly Coreweave: "coreweave";
|
|
30
|
+
readonly Cosine: "cosine";
|
|
30
31
|
readonly Crusoe: "crusoe";
|
|
31
32
|
readonly Darkbloom: "darkbloom";
|
|
32
33
|
readonly Databricks: "databricks";
|
|
@@ -72,6 +73,7 @@ export declare const BYOKProviderSlug: {
|
|
|
72
73
|
readonly Nextbit: "nextbit";
|
|
73
74
|
readonly Novita: "novita";
|
|
74
75
|
readonly Nvidia: "nvidia";
|
|
76
|
+
readonly Ollama: "ollama";
|
|
75
77
|
readonly OpenInference: "open-inference";
|
|
76
78
|
readonly Openai: "openai";
|
|
77
79
|
readonly Parasail: "parasail";
|
|
@@ -30,6 +30,7 @@ export const BYOKProviderSlug = {
|
|
|
30
30
|
Cloudflare: "cloudflare",
|
|
31
31
|
Cohere: "cohere",
|
|
32
32
|
Coreweave: "coreweave",
|
|
33
|
+
Cosine: "cosine",
|
|
33
34
|
Crusoe: "crusoe",
|
|
34
35
|
Darkbloom: "darkbloom",
|
|
35
36
|
Databricks: "databricks",
|
|
@@ -75,6 +76,7 @@ export const BYOKProviderSlug = {
|
|
|
75
76
|
Nextbit: "nextbit",
|
|
76
77
|
Novita: "novita",
|
|
77
78
|
Nvidia: "nvidia",
|
|
79
|
+
Ollama: "ollama",
|
|
78
80
|
OpenInference: "open-inference",
|
|
79
81
|
Openai: "openai",
|
|
80
82
|
Parasail: "parasail",
|
|
@@ -98,6 +98,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
98
98
|
coreweave?: {
|
|
99
99
|
[k: string]: any;
|
|
100
100
|
} | undefined;
|
|
101
|
+
cosine?: {
|
|
102
|
+
[k: string]: any;
|
|
103
|
+
} | undefined;
|
|
101
104
|
crofai?: {
|
|
102
105
|
[k: string]: any;
|
|
103
106
|
} | undefined;
|
|
@@ -284,6 +287,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
284
287
|
octoai?: {
|
|
285
288
|
[k: string]: any;
|
|
286
289
|
} | undefined;
|
|
290
|
+
ollama?: {
|
|
291
|
+
[k: string]: any;
|
|
292
|
+
} | undefined;
|
|
287
293
|
openInference?: {
|
|
288
294
|
[k: string]: any;
|
|
289
295
|
} | undefined;
|
|
@@ -554,6 +560,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
554
560
|
coreweave?: {
|
|
555
561
|
[k: string]: any;
|
|
556
562
|
} | undefined;
|
|
563
|
+
cosine?: {
|
|
564
|
+
[k: string]: any;
|
|
565
|
+
} | undefined;
|
|
557
566
|
crofai?: {
|
|
558
567
|
[k: string]: any;
|
|
559
568
|
} | undefined;
|
|
@@ -740,6 +749,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
740
749
|
octoai?: {
|
|
741
750
|
[k: string]: any;
|
|
742
751
|
} | undefined;
|
|
752
|
+
ollama?: {
|
|
753
|
+
[k: string]: any;
|
|
754
|
+
} | undefined;
|
|
743
755
|
"open-inference"?: {
|
|
744
756
|
[k: string]: any;
|
|
745
757
|
} | undefined;
|
|
@@ -49,6 +49,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
49
49
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
50
50
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
51
51
|
coreweave: z.record(z.string(), z.any()).optional(),
|
|
52
|
+
cosine: z.record(z.string(), z.any()).optional(),
|
|
52
53
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
53
54
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
54
55
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -111,6 +112,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
111
112
|
novita: z.record(z.string(), z.any()).optional(),
|
|
112
113
|
nvidia: z.record(z.string(), z.any()).optional(),
|
|
113
114
|
octoai: z.record(z.string(), z.any()).optional(),
|
|
115
|
+
ollama: z.record(z.string(), z.any()).optional(),
|
|
114
116
|
openInference: z.record(z.string(), z.any()).optional(),
|
|
115
117
|
openai: z.record(z.string(), z.any()).optional(),
|
|
116
118
|
parasail: z.record(z.string(), z.any()).optional(),
|
|
@@ -51,6 +51,7 @@ export declare const Provider: {
|
|
|
51
51
|
readonly Cloudflare: "cloudflare";
|
|
52
52
|
readonly Cohere: "cohere";
|
|
53
53
|
readonly Coreweave: "coreweave";
|
|
54
|
+
readonly Cosine: "cosine";
|
|
54
55
|
readonly Crusoe: "crusoe";
|
|
55
56
|
readonly Darkbloom: "darkbloom";
|
|
56
57
|
readonly Databricks: "databricks";
|
|
@@ -96,6 +97,7 @@ export declare const Provider: {
|
|
|
96
97
|
readonly Nextbit: "nextbit";
|
|
97
98
|
readonly Novita: "novita";
|
|
98
99
|
readonly Nvidia: "nvidia";
|
|
100
|
+
readonly Ollama: "ollama";
|
|
99
101
|
readonly OpenInference: "open-inference";
|
|
100
102
|
readonly Openai: "openai";
|
|
101
103
|
readonly Parasail: "parasail";
|
|
@@ -34,6 +34,7 @@ export const Provider = {
|
|
|
34
34
|
Cloudflare: "cloudflare",
|
|
35
35
|
Cohere: "cohere",
|
|
36
36
|
Coreweave: "coreweave",
|
|
37
|
+
Cosine: "cosine",
|
|
37
38
|
Crusoe: "crusoe",
|
|
38
39
|
Darkbloom: "darkbloom",
|
|
39
40
|
Databricks: "databricks",
|
|
@@ -79,6 +80,7 @@ export const Provider = {
|
|
|
79
80
|
Nextbit: "nextbit",
|
|
80
81
|
Novita: "novita",
|
|
81
82
|
Nvidia: "nvidia",
|
|
83
|
+
Ollama: "ollama",
|
|
82
84
|
OpenInference: "open-inference",
|
|
83
85
|
Openai: "openai",
|
|
84
86
|
Parasail: "parasail",
|
|
@@ -26,6 +26,7 @@ export declare const ProviderName: {
|
|
|
26
26
|
readonly Cloudflare: "Cloudflare";
|
|
27
27
|
readonly Cohere: "Cohere";
|
|
28
28
|
readonly CoreWeave: "CoreWeave";
|
|
29
|
+
readonly Cosine: "Cosine";
|
|
29
30
|
readonly Crucible: "Crucible";
|
|
30
31
|
readonly Crusoe: "Crusoe";
|
|
31
32
|
readonly Darkbloom: "Darkbloom";
|
|
@@ -71,6 +72,7 @@ export declare const ProviderName: {
|
|
|
71
72
|
readonly NextBit: "NextBit";
|
|
72
73
|
readonly Novita: "Novita";
|
|
73
74
|
readonly Nvidia: "Nvidia";
|
|
75
|
+
readonly Ollama: "Ollama";
|
|
74
76
|
readonly OpenAI: "OpenAI";
|
|
75
77
|
readonly OpenInference: "OpenInference";
|
|
76
78
|
readonly Parasail: "Parasail";
|
|
@@ -29,6 +29,7 @@ export const ProviderName = {
|
|
|
29
29
|
Cloudflare: "Cloudflare",
|
|
30
30
|
Cohere: "Cohere",
|
|
31
31
|
CoreWeave: "CoreWeave",
|
|
32
|
+
Cosine: "Cosine",
|
|
32
33
|
Crucible: "Crucible",
|
|
33
34
|
Crusoe: "Crusoe",
|
|
34
35
|
Darkbloom: "Darkbloom",
|
|
@@ -74,6 +75,7 @@ export const ProviderName = {
|
|
|
74
75
|
NextBit: "NextBit",
|
|
75
76
|
Novita: "Novita",
|
|
76
77
|
Nvidia: "Nvidia",
|
|
78
|
+
Ollama: "Ollama",
|
|
77
79
|
OpenAI: "OpenAI",
|
|
78
80
|
OpenInference: "OpenInference",
|
|
79
81
|
Parasail: "Parasail",
|
|
@@ -93,6 +93,9 @@ export type ProviderOptions = {
|
|
|
93
93
|
coreweave?: {
|
|
94
94
|
[k: string]: any;
|
|
95
95
|
} | undefined;
|
|
96
|
+
cosine?: {
|
|
97
|
+
[k: string]: any;
|
|
98
|
+
} | undefined;
|
|
96
99
|
crofai?: {
|
|
97
100
|
[k: string]: any;
|
|
98
101
|
} | undefined;
|
|
@@ -279,6 +282,9 @@ export type ProviderOptions = {
|
|
|
279
282
|
octoai?: {
|
|
280
283
|
[k: string]: any;
|
|
281
284
|
} | undefined;
|
|
285
|
+
ollama?: {
|
|
286
|
+
[k: string]: any;
|
|
287
|
+
} | undefined;
|
|
282
288
|
openInference?: {
|
|
283
289
|
[k: string]: any;
|
|
284
290
|
} | undefined;
|
|
@@ -504,6 +510,9 @@ export type ProviderOptions$Outbound = {
|
|
|
504
510
|
coreweave?: {
|
|
505
511
|
[k: string]: any;
|
|
506
512
|
} | undefined;
|
|
513
|
+
cosine?: {
|
|
514
|
+
[k: string]: any;
|
|
515
|
+
} | undefined;
|
|
507
516
|
crofai?: {
|
|
508
517
|
[k: string]: any;
|
|
509
518
|
} | undefined;
|
|
@@ -690,6 +699,9 @@ export type ProviderOptions$Outbound = {
|
|
|
690
699
|
octoai?: {
|
|
691
700
|
[k: string]: any;
|
|
692
701
|
} | undefined;
|
|
702
|
+
ollama?: {
|
|
703
|
+
[k: string]: any;
|
|
704
|
+
} | undefined;
|
|
693
705
|
"open-inference"?: {
|
|
694
706
|
[k: string]: any;
|
|
695
707
|
} | undefined;
|
|
@@ -36,6 +36,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
36
36
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
37
37
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
38
38
|
coreweave: z.record(z.string(), z.any()).optional(),
|
|
39
|
+
cosine: z.record(z.string(), z.any()).optional(),
|
|
39
40
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
40
41
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
41
42
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -98,6 +99,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
98
99
|
novita: z.record(z.string(), z.any()).optional(),
|
|
99
100
|
nvidia: z.record(z.string(), z.any()).optional(),
|
|
100
101
|
octoai: z.record(z.string(), z.any()).optional(),
|
|
102
|
+
ollama: z.record(z.string(), z.any()).optional(),
|
|
101
103
|
openInference: z.record(z.string(), z.any()).optional(),
|
|
102
104
|
openai: z.record(z.string(), z.any()).optional(),
|
|
103
105
|
parasail: z.record(z.string(), z.any()).optional(),
|
|
@@ -58,6 +58,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
58
58
|
readonly Cloudflare: "Cloudflare";
|
|
59
59
|
readonly Cohere: "Cohere";
|
|
60
60
|
readonly CoreWeave: "CoreWeave";
|
|
61
|
+
readonly Cosine: "Cosine";
|
|
61
62
|
readonly Crucible: "Crucible";
|
|
62
63
|
readonly Crusoe: "Crusoe";
|
|
63
64
|
readonly Darkbloom: "Darkbloom";
|
|
@@ -103,6 +104,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
103
104
|
readonly NextBit: "NextBit";
|
|
104
105
|
readonly Novita: "Novita";
|
|
105
106
|
readonly Nvidia: "Nvidia";
|
|
107
|
+
readonly Ollama: "Ollama";
|
|
106
108
|
readonly OpenAI: "OpenAI";
|
|
107
109
|
readonly OpenInference: "OpenInference";
|
|
108
110
|
readonly Parasail: "Parasail";
|
|
@@ -62,6 +62,7 @@ export const ProviderResponseProviderName = {
|
|
|
62
62
|
Cloudflare: "Cloudflare",
|
|
63
63
|
Cohere: "Cohere",
|
|
64
64
|
CoreWeave: "CoreWeave",
|
|
65
|
+
Cosine: "Cosine",
|
|
65
66
|
Crucible: "Crucible",
|
|
66
67
|
Crusoe: "Crusoe",
|
|
67
68
|
Darkbloom: "Darkbloom",
|
|
@@ -107,6 +108,7 @@ export const ProviderResponseProviderName = {
|
|
|
107
108
|
NextBit: "NextBit",
|
|
108
109
|
Novita: "Novita",
|
|
109
110
|
Nvidia: "Nvidia",
|
|
111
|
+
Ollama: "Ollama",
|
|
110
112
|
OpenAI: "OpenAI",
|
|
111
113
|
OpenInference: "OpenInference",
|
|
112
114
|
Parasail: "Parasail",
|
|
@@ -114,6 +114,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
114
114
|
coreweave?: {
|
|
115
115
|
[k: string]: any;
|
|
116
116
|
} | undefined;
|
|
117
|
+
cosine?: {
|
|
118
|
+
[k: string]: any;
|
|
119
|
+
} | undefined;
|
|
117
120
|
crofai?: {
|
|
118
121
|
[k: string]: any;
|
|
119
122
|
} | undefined;
|
|
@@ -300,6 +303,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
300
303
|
octoai?: {
|
|
301
304
|
[k: string]: any;
|
|
302
305
|
} | undefined;
|
|
306
|
+
ollama?: {
|
|
307
|
+
[k: string]: any;
|
|
308
|
+
} | undefined;
|
|
303
309
|
openInference?: {
|
|
304
310
|
[k: string]: any;
|
|
305
311
|
} | undefined;
|
|
@@ -604,6 +610,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
604
610
|
coreweave?: {
|
|
605
611
|
[k: string]: any;
|
|
606
612
|
} | undefined;
|
|
613
|
+
cosine?: {
|
|
614
|
+
[k: string]: any;
|
|
615
|
+
} | undefined;
|
|
607
616
|
crofai?: {
|
|
608
617
|
[k: string]: any;
|
|
609
618
|
} | undefined;
|
|
@@ -790,6 +799,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
790
799
|
octoai?: {
|
|
791
800
|
[k: string]: any;
|
|
792
801
|
} | undefined;
|
|
802
|
+
ollama?: {
|
|
803
|
+
[k: string]: any;
|
|
804
|
+
} | undefined;
|
|
793
805
|
"open-inference"?: {
|
|
794
806
|
[k: string]: any;
|
|
795
807
|
} | undefined;
|
|
@@ -67,6 +67,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
67
67
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
68
68
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
69
69
|
coreweave: z.record(z.string(), z.any()).optional(),
|
|
70
|
+
cosine: z.record(z.string(), z.any()).optional(),
|
|
70
71
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
71
72
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
72
73
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -129,6 +130,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
129
130
|
novita: z.record(z.string(), z.any()).optional(),
|
|
130
131
|
nvidia: z.record(z.string(), z.any()).optional(),
|
|
131
132
|
octoai: z.record(z.string(), z.any()).optional(),
|
|
133
|
+
ollama: z.record(z.string(), z.any()).optional(),
|
|
132
134
|
openInference: z.record(z.string(), z.any()).optional(),
|
|
133
135
|
openai: z.record(z.string(), z.any()).optional(),
|
|
134
136
|
parasail: z.record(z.string(), z.any()).optional(),
|
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.82",
|
|
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": [
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
76
|
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
+
"typecheck": "tsc --noEmit",
|
|
78
|
+
"typecheck:transit": "exit 0",
|
|
77
79
|
"prepare": "npm run build",
|
|
78
80
|
"test": "vitest --run --project unit",
|
|
79
81
|
"test:e2e": "vitest --run --project e2e",
|
|
82
|
+
"test:transit": "exit 0",
|
|
80
83
|
"test:watch": "vitest --watch --project unit",
|
|
81
|
-
"
|
|
82
|
-
"typecheck:transit": "exit 0",
|
|
83
|
-
"compile": "tsc",
|
|
84
|
-
"test:transit": "exit 0"
|
|
84
|
+
"compile": "tsc"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|