llm-models 1.0.0

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.
@@ -0,0 +1,570 @@
1
+ import { z } from "zod";
2
+ export declare const OpenRouterArchitectureSchema: z.ZodObject<{
3
+ modality: z.ZodString;
4
+ input_modalities: z.ZodArray<z.ZodString, "many">;
5
+ output_modalities: z.ZodArray<z.ZodString, "many">;
6
+ tokenizer: z.ZodString;
7
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ modality: string;
10
+ input_modalities: string[];
11
+ output_modalities: string[];
12
+ tokenizer: string;
13
+ instruct_type?: string | null | undefined;
14
+ }, {
15
+ modality: string;
16
+ input_modalities: string[];
17
+ output_modalities: string[];
18
+ tokenizer: string;
19
+ instruct_type?: string | null | undefined;
20
+ }>;
21
+ export declare const OpenRouterPricingSchema: z.ZodObject<{
22
+ prompt: z.ZodString;
23
+ completion: z.ZodString;
24
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ prompt: string;
32
+ completion: string;
33
+ web_search?: string | null | undefined;
34
+ input_cache_read?: string | null | undefined;
35
+ input_cache_write?: string | null | undefined;
36
+ internal_reasoning?: string | null | undefined;
37
+ image?: string | null | undefined;
38
+ audio?: string | null | undefined;
39
+ }, {
40
+ prompt: string;
41
+ completion: string;
42
+ web_search?: string | null | undefined;
43
+ input_cache_read?: string | null | undefined;
44
+ input_cache_write?: string | null | undefined;
45
+ internal_reasoning?: string | null | undefined;
46
+ image?: string | null | undefined;
47
+ audio?: string | null | undefined;
48
+ }>;
49
+ export declare const OpenRouterTopProviderSchema: z.ZodObject<{
50
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
+ is_moderated: z.ZodBoolean;
53
+ }, "strip", z.ZodTypeAny, {
54
+ is_moderated: boolean;
55
+ context_length?: number | null | undefined;
56
+ max_completion_tokens?: number | null | undefined;
57
+ }, {
58
+ is_moderated: boolean;
59
+ context_length?: number | null | undefined;
60
+ max_completion_tokens?: number | null | undefined;
61
+ }>;
62
+ export declare const OpenRouterDefaultParametersSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
+ top_k: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ presence_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
+ repetition_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ temperature?: number | null | undefined;
71
+ top_p?: number | null | undefined;
72
+ top_k?: number | null | undefined;
73
+ frequency_penalty?: number | null | undefined;
74
+ presence_penalty?: number | null | undefined;
75
+ repetition_penalty?: number | null | undefined;
76
+ }, {
77
+ temperature?: number | null | undefined;
78
+ top_p?: number | null | undefined;
79
+ top_k?: number | null | undefined;
80
+ frequency_penalty?: number | null | undefined;
81
+ presence_penalty?: number | null | undefined;
82
+ repetition_penalty?: number | null | undefined;
83
+ }>>>;
84
+ export declare const OpenRouterLinksSchema: z.ZodObject<{
85
+ details: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ details: string;
88
+ }, {
89
+ details: string;
90
+ }>;
91
+ export declare const OpenRouterModelSchema: z.ZodObject<{
92
+ id: z.ZodString;
93
+ canonical_slug: z.ZodString;
94
+ name: z.ZodString;
95
+ description: z.ZodString;
96
+ created: z.ZodNumber;
97
+ context_length: z.ZodNumber;
98
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ knowledge_cutoff: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
102
+ supported_parameters: z.ZodArray<z.ZodString, "many">;
103
+ architecture: z.ZodObject<{
104
+ modality: z.ZodString;
105
+ input_modalities: z.ZodArray<z.ZodString, "many">;
106
+ output_modalities: z.ZodArray<z.ZodString, "many">;
107
+ tokenizer: z.ZodString;
108
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ modality: string;
111
+ input_modalities: string[];
112
+ output_modalities: string[];
113
+ tokenizer: string;
114
+ instruct_type?: string | null | undefined;
115
+ }, {
116
+ modality: string;
117
+ input_modalities: string[];
118
+ output_modalities: string[];
119
+ tokenizer: string;
120
+ instruct_type?: string | null | undefined;
121
+ }>;
122
+ pricing: z.ZodObject<{
123
+ prompt: z.ZodString;
124
+ completion: z.ZodString;
125
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ prompt: string;
133
+ completion: string;
134
+ web_search?: string | null | undefined;
135
+ input_cache_read?: string | null | undefined;
136
+ input_cache_write?: string | null | undefined;
137
+ internal_reasoning?: string | null | undefined;
138
+ image?: string | null | undefined;
139
+ audio?: string | null | undefined;
140
+ }, {
141
+ prompt: string;
142
+ completion: string;
143
+ web_search?: string | null | undefined;
144
+ input_cache_read?: string | null | undefined;
145
+ input_cache_write?: string | null | undefined;
146
+ internal_reasoning?: string | null | undefined;
147
+ image?: string | null | undefined;
148
+ audio?: string | null | undefined;
149
+ }>;
150
+ top_provider: z.ZodObject<{
151
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
152
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
+ is_moderated: z.ZodBoolean;
154
+ }, "strip", z.ZodTypeAny, {
155
+ is_moderated: boolean;
156
+ context_length?: number | null | undefined;
157
+ max_completion_tokens?: number | null | undefined;
158
+ }, {
159
+ is_moderated: boolean;
160
+ context_length?: number | null | undefined;
161
+ max_completion_tokens?: number | null | undefined;
162
+ }>;
163
+ default_parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
164
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
165
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
166
+ top_k: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
167
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
168
+ presence_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ repetition_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ temperature?: number | null | undefined;
172
+ top_p?: number | null | undefined;
173
+ top_k?: number | null | undefined;
174
+ frequency_penalty?: number | null | undefined;
175
+ presence_penalty?: number | null | undefined;
176
+ repetition_penalty?: number | null | undefined;
177
+ }, {
178
+ temperature?: number | null | undefined;
179
+ top_p?: number | null | undefined;
180
+ top_k?: number | null | undefined;
181
+ frequency_penalty?: number | null | undefined;
182
+ presence_penalty?: number | null | undefined;
183
+ repetition_penalty?: number | null | undefined;
184
+ }>>>;
185
+ links: z.ZodObject<{
186
+ details: z.ZodString;
187
+ }, "strip", z.ZodTypeAny, {
188
+ details: string;
189
+ }, {
190
+ details: string;
191
+ }>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ id: string;
194
+ name: string;
195
+ context_length: number;
196
+ canonical_slug: string;
197
+ description: string;
198
+ created: number;
199
+ supported_parameters: string[];
200
+ architecture: {
201
+ modality: string;
202
+ input_modalities: string[];
203
+ output_modalities: string[];
204
+ tokenizer: string;
205
+ instruct_type?: string | null | undefined;
206
+ };
207
+ pricing: {
208
+ prompt: string;
209
+ completion: string;
210
+ web_search?: string | null | undefined;
211
+ input_cache_read?: string | null | undefined;
212
+ input_cache_write?: string | null | undefined;
213
+ internal_reasoning?: string | null | undefined;
214
+ image?: string | null | undefined;
215
+ audio?: string | null | undefined;
216
+ };
217
+ top_provider: {
218
+ is_moderated: boolean;
219
+ context_length?: number | null | undefined;
220
+ max_completion_tokens?: number | null | undefined;
221
+ };
222
+ links: {
223
+ details: string;
224
+ };
225
+ hugging_face_id?: string | null | undefined;
226
+ knowledge_cutoff?: string | null | undefined;
227
+ expiration_date?: string | null | undefined;
228
+ per_request_limits?: unknown;
229
+ default_parameters?: {
230
+ temperature?: number | null | undefined;
231
+ top_p?: number | null | undefined;
232
+ top_k?: number | null | undefined;
233
+ frequency_penalty?: number | null | undefined;
234
+ presence_penalty?: number | null | undefined;
235
+ repetition_penalty?: number | null | undefined;
236
+ } | null | undefined;
237
+ }, {
238
+ id: string;
239
+ name: string;
240
+ context_length: number;
241
+ canonical_slug: string;
242
+ description: string;
243
+ created: number;
244
+ supported_parameters: string[];
245
+ architecture: {
246
+ modality: string;
247
+ input_modalities: string[];
248
+ output_modalities: string[];
249
+ tokenizer: string;
250
+ instruct_type?: string | null | undefined;
251
+ };
252
+ pricing: {
253
+ prompt: string;
254
+ completion: string;
255
+ web_search?: string | null | undefined;
256
+ input_cache_read?: string | null | undefined;
257
+ input_cache_write?: string | null | undefined;
258
+ internal_reasoning?: string | null | undefined;
259
+ image?: string | null | undefined;
260
+ audio?: string | null | undefined;
261
+ };
262
+ top_provider: {
263
+ is_moderated: boolean;
264
+ context_length?: number | null | undefined;
265
+ max_completion_tokens?: number | null | undefined;
266
+ };
267
+ links: {
268
+ details: string;
269
+ };
270
+ hugging_face_id?: string | null | undefined;
271
+ knowledge_cutoff?: string | null | undefined;
272
+ expiration_date?: string | null | undefined;
273
+ per_request_limits?: unknown;
274
+ default_parameters?: {
275
+ temperature?: number | null | undefined;
276
+ top_p?: number | null | undefined;
277
+ top_k?: number | null | undefined;
278
+ frequency_penalty?: number | null | undefined;
279
+ presence_penalty?: number | null | undefined;
280
+ repetition_penalty?: number | null | undefined;
281
+ } | null | undefined;
282
+ }>;
283
+ export declare const OpenRouterResponseSchema: z.ZodObject<{
284
+ data: z.ZodArray<z.ZodObject<{
285
+ id: z.ZodString;
286
+ canonical_slug: z.ZodString;
287
+ name: z.ZodString;
288
+ description: z.ZodString;
289
+ created: z.ZodNumber;
290
+ context_length: z.ZodNumber;
291
+ hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ knowledge_cutoff: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
295
+ supported_parameters: z.ZodArray<z.ZodString, "many">;
296
+ architecture: z.ZodObject<{
297
+ modality: z.ZodString;
298
+ input_modalities: z.ZodArray<z.ZodString, "many">;
299
+ output_modalities: z.ZodArray<z.ZodString, "many">;
300
+ tokenizer: z.ZodString;
301
+ instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ modality: string;
304
+ input_modalities: string[];
305
+ output_modalities: string[];
306
+ tokenizer: string;
307
+ instruct_type?: string | null | undefined;
308
+ }, {
309
+ modality: string;
310
+ input_modalities: string[];
311
+ output_modalities: string[];
312
+ tokenizer: string;
313
+ instruct_type?: string | null | undefined;
314
+ }>;
315
+ pricing: z.ZodObject<{
316
+ prompt: z.ZodString;
317
+ completion: z.ZodString;
318
+ web_search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ prompt: string;
326
+ completion: string;
327
+ web_search?: string | null | undefined;
328
+ input_cache_read?: string | null | undefined;
329
+ input_cache_write?: string | null | undefined;
330
+ internal_reasoning?: string | null | undefined;
331
+ image?: string | null | undefined;
332
+ audio?: string | null | undefined;
333
+ }, {
334
+ prompt: string;
335
+ completion: string;
336
+ web_search?: string | null | undefined;
337
+ input_cache_read?: string | null | undefined;
338
+ input_cache_write?: string | null | undefined;
339
+ internal_reasoning?: string | null | undefined;
340
+ image?: string | null | undefined;
341
+ audio?: string | null | undefined;
342
+ }>;
343
+ top_provider: z.ZodObject<{
344
+ context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
345
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
346
+ is_moderated: z.ZodBoolean;
347
+ }, "strip", z.ZodTypeAny, {
348
+ is_moderated: boolean;
349
+ context_length?: number | null | undefined;
350
+ max_completion_tokens?: number | null | undefined;
351
+ }, {
352
+ is_moderated: boolean;
353
+ context_length?: number | null | undefined;
354
+ max_completion_tokens?: number | null | undefined;
355
+ }>;
356
+ default_parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
357
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
358
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
359
+ top_k: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
360
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
361
+ presence_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
362
+ repetition_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ temperature?: number | null | undefined;
365
+ top_p?: number | null | undefined;
366
+ top_k?: number | null | undefined;
367
+ frequency_penalty?: number | null | undefined;
368
+ presence_penalty?: number | null | undefined;
369
+ repetition_penalty?: number | null | undefined;
370
+ }, {
371
+ temperature?: number | null | undefined;
372
+ top_p?: number | null | undefined;
373
+ top_k?: number | null | undefined;
374
+ frequency_penalty?: number | null | undefined;
375
+ presence_penalty?: number | null | undefined;
376
+ repetition_penalty?: number | null | undefined;
377
+ }>>>;
378
+ links: z.ZodObject<{
379
+ details: z.ZodString;
380
+ }, "strip", z.ZodTypeAny, {
381
+ details: string;
382
+ }, {
383
+ details: string;
384
+ }>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ id: string;
387
+ name: string;
388
+ context_length: number;
389
+ canonical_slug: string;
390
+ description: string;
391
+ created: number;
392
+ supported_parameters: string[];
393
+ architecture: {
394
+ modality: string;
395
+ input_modalities: string[];
396
+ output_modalities: string[];
397
+ tokenizer: string;
398
+ instruct_type?: string | null | undefined;
399
+ };
400
+ pricing: {
401
+ prompt: string;
402
+ completion: string;
403
+ web_search?: string | null | undefined;
404
+ input_cache_read?: string | null | undefined;
405
+ input_cache_write?: string | null | undefined;
406
+ internal_reasoning?: string | null | undefined;
407
+ image?: string | null | undefined;
408
+ audio?: string | null | undefined;
409
+ };
410
+ top_provider: {
411
+ is_moderated: boolean;
412
+ context_length?: number | null | undefined;
413
+ max_completion_tokens?: number | null | undefined;
414
+ };
415
+ links: {
416
+ details: string;
417
+ };
418
+ hugging_face_id?: string | null | undefined;
419
+ knowledge_cutoff?: string | null | undefined;
420
+ expiration_date?: string | null | undefined;
421
+ per_request_limits?: unknown;
422
+ default_parameters?: {
423
+ temperature?: number | null | undefined;
424
+ top_p?: number | null | undefined;
425
+ top_k?: number | null | undefined;
426
+ frequency_penalty?: number | null | undefined;
427
+ presence_penalty?: number | null | undefined;
428
+ repetition_penalty?: number | null | undefined;
429
+ } | null | undefined;
430
+ }, {
431
+ id: string;
432
+ name: string;
433
+ context_length: number;
434
+ canonical_slug: string;
435
+ description: string;
436
+ created: number;
437
+ supported_parameters: string[];
438
+ architecture: {
439
+ modality: string;
440
+ input_modalities: string[];
441
+ output_modalities: string[];
442
+ tokenizer: string;
443
+ instruct_type?: string | null | undefined;
444
+ };
445
+ pricing: {
446
+ prompt: string;
447
+ completion: string;
448
+ web_search?: string | null | undefined;
449
+ input_cache_read?: string | null | undefined;
450
+ input_cache_write?: string | null | undefined;
451
+ internal_reasoning?: string | null | undefined;
452
+ image?: string | null | undefined;
453
+ audio?: string | null | undefined;
454
+ };
455
+ top_provider: {
456
+ is_moderated: boolean;
457
+ context_length?: number | null | undefined;
458
+ max_completion_tokens?: number | null | undefined;
459
+ };
460
+ links: {
461
+ details: string;
462
+ };
463
+ hugging_face_id?: string | null | undefined;
464
+ knowledge_cutoff?: string | null | undefined;
465
+ expiration_date?: string | null | undefined;
466
+ per_request_limits?: unknown;
467
+ default_parameters?: {
468
+ temperature?: number | null | undefined;
469
+ top_p?: number | null | undefined;
470
+ top_k?: number | null | undefined;
471
+ frequency_penalty?: number | null | undefined;
472
+ presence_penalty?: number | null | undefined;
473
+ repetition_penalty?: number | null | undefined;
474
+ } | null | undefined;
475
+ }>, "many">;
476
+ }, "strip", z.ZodTypeAny, {
477
+ data: {
478
+ id: string;
479
+ name: string;
480
+ context_length: number;
481
+ canonical_slug: string;
482
+ description: string;
483
+ created: number;
484
+ supported_parameters: string[];
485
+ architecture: {
486
+ modality: string;
487
+ input_modalities: string[];
488
+ output_modalities: string[];
489
+ tokenizer: string;
490
+ instruct_type?: string | null | undefined;
491
+ };
492
+ pricing: {
493
+ prompt: string;
494
+ completion: string;
495
+ web_search?: string | null | undefined;
496
+ input_cache_read?: string | null | undefined;
497
+ input_cache_write?: string | null | undefined;
498
+ internal_reasoning?: string | null | undefined;
499
+ image?: string | null | undefined;
500
+ audio?: string | null | undefined;
501
+ };
502
+ top_provider: {
503
+ is_moderated: boolean;
504
+ context_length?: number | null | undefined;
505
+ max_completion_tokens?: number | null | undefined;
506
+ };
507
+ links: {
508
+ details: string;
509
+ };
510
+ hugging_face_id?: string | null | undefined;
511
+ knowledge_cutoff?: string | null | undefined;
512
+ expiration_date?: string | null | undefined;
513
+ per_request_limits?: unknown;
514
+ default_parameters?: {
515
+ temperature?: number | null | undefined;
516
+ top_p?: number | null | undefined;
517
+ top_k?: number | null | undefined;
518
+ frequency_penalty?: number | null | undefined;
519
+ presence_penalty?: number | null | undefined;
520
+ repetition_penalty?: number | null | undefined;
521
+ } | null | undefined;
522
+ }[];
523
+ }, {
524
+ data: {
525
+ id: string;
526
+ name: string;
527
+ context_length: number;
528
+ canonical_slug: string;
529
+ description: string;
530
+ created: number;
531
+ supported_parameters: string[];
532
+ architecture: {
533
+ modality: string;
534
+ input_modalities: string[];
535
+ output_modalities: string[];
536
+ tokenizer: string;
537
+ instruct_type?: string | null | undefined;
538
+ };
539
+ pricing: {
540
+ prompt: string;
541
+ completion: string;
542
+ web_search?: string | null | undefined;
543
+ input_cache_read?: string | null | undefined;
544
+ input_cache_write?: string | null | undefined;
545
+ internal_reasoning?: string | null | undefined;
546
+ image?: string | null | undefined;
547
+ audio?: string | null | undefined;
548
+ };
549
+ top_provider: {
550
+ is_moderated: boolean;
551
+ context_length?: number | null | undefined;
552
+ max_completion_tokens?: number | null | undefined;
553
+ };
554
+ links: {
555
+ details: string;
556
+ };
557
+ hugging_face_id?: string | null | undefined;
558
+ knowledge_cutoff?: string | null | undefined;
559
+ expiration_date?: string | null | undefined;
560
+ per_request_limits?: unknown;
561
+ default_parameters?: {
562
+ temperature?: number | null | undefined;
563
+ top_p?: number | null | undefined;
564
+ top_k?: number | null | undefined;
565
+ frequency_penalty?: number | null | undefined;
566
+ presence_penalty?: number | null | undefined;
567
+ repetition_penalty?: number | null | undefined;
568
+ } | null | undefined;
569
+ }[];
570
+ }>;
@@ -0,0 +1,8 @@
1
+ import type { z } from "zod";
2
+ import type { ModelsDevModelSchema, ModelsDevProviderSchema, ModelsDevResponseSchema } from "./schemas/models-dev";
3
+ import type { OpenRouterModelSchema, OpenRouterResponseSchema } from "./schemas/openrouter";
4
+ export type OpenRouterModel = z.infer<typeof OpenRouterModelSchema>;
5
+ export type OpenRouterResponse = z.infer<typeof OpenRouterResponseSchema>;
6
+ export type ModelsDevModel = z.infer<typeof ModelsDevModelSchema>;
7
+ export type ModelsDevProvider = z.infer<typeof ModelsDevProviderSchema>;
8
+ export type ModelsDevResponse = z.infer<typeof ModelsDevResponseSchema>;
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "llm-models",
3
+ "version": "1.0.0",
4
+ "author": "maxgfr",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./build/index.js",
8
+ "types": "./build/index.d.ts",
9
+ "description": "Fetch latest LLM models from OpenRouter and models.dev APIs",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/maxgfr/llm-models.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/maxgfr/llm-models/issues"
16
+ },
17
+ "homepage": "https://github.com/maxgfr/llm-models#readme",
18
+ "files": [
19
+ "build"
20
+ ],
21
+ "bin": {
22
+ "llm-models": "./build/index.js"
23
+ },
24
+ "keywords": [
25
+ "llm",
26
+ "models",
27
+ "openrouter",
28
+ "ai",
29
+ "machine-learning",
30
+ "api",
31
+ "cli",
32
+ "zod"
33
+ ],
34
+ "scripts": {
35
+ "start": "bun run src/index.ts",
36
+ "dev": "bun run --watch src/index.ts",
37
+ "build": "bun build src/index.ts --outdir build --target node",
38
+ "build:types": "tsc --emitDeclarationOnly",
39
+ "build:all": "bun run build && bun run build:types",
40
+ "test": "bun test",
41
+ "test:watch": "bun test --watch",
42
+ "lint": "biome check src/",
43
+ "lint:fix": "biome check --write src/",
44
+ "format": "biome format --write src/",
45
+ "release": "semantic-release",
46
+ "build:binary:linux-x64": "bun build src/index.ts --compile --target=bun-linux-x64 --outfile dist/llm-models-linux-x64",
47
+ "build:binary:linux-arm64": "bun build src/index.ts --compile --target=bun-linux-arm64 --outfile dist/llm-models-linux-arm64",
48
+ "build:binary:macos-x64": "bun build src/index.ts --compile --target=bun-darwin-x64 --outfile dist/llm-models-macos-x64",
49
+ "build:binary:macos-arm64": "bun build src/index.ts --compile --target=bun-darwin-arm64 --outfile dist/llm-models-macos-arm64",
50
+ "build:binary:win-x64": "bun build src/index.ts --compile --target=bun-windows-x64 --outfile dist/llm-models-win-x64.exe"
51
+ },
52
+ "dependencies": {
53
+ "commander": "^13.0.0",
54
+ "zod": "^3.24.0"
55
+ },
56
+ "devDependencies": {
57
+ "@biomejs/biome": "^1.9.0",
58
+ "@semantic-release/commit-analyzer": "^13.0.0",
59
+ "@semantic-release/git": "^10.0.1",
60
+ "@semantic-release/github": "^11.0.0",
61
+ "@semantic-release/npm": "^12.0.0",
62
+ "@semantic-release/release-notes-generator": "^14.0.0",
63
+ "bun-types": "^1.2.0",
64
+ "semantic-release": "^24.0.0",
65
+ "typescript": "^5.7.0"
66
+ }
67
+ }