-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathmodels.ts
More file actions
1035 lines (954 loc) · 34.1 KB
/
Copy pathmodels.ts
File metadata and controls
1035 lines (954 loc) · 34.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import {
'gpt-3.5-turbo-0125' as gpt_3_5_turbo_0125_spec,
'gpt-4-0613' as gpt_4_0613_spec,
} from './models.gen.js'
import type { ModelConfig, ModelSpec } from "./modelTypes.js"
// export all codegen-based models:
export * from './models.gen.js'
//
// --- BELOW ARE MODELS THAT WERE MISSING FROM DATASET, BUT PRESENT IN "OTHER MODELS" SECTION ---
// https://platform.openai.com/docs/pricing#other-models
//
// - gpt-3.5-0301
const gpt_3_5_0301_spec = {
...gpt_3_5_turbo_0125_spec,
name: 'gpt-3.5-0301',
slug: 'gpt-3-5-0301',
supported_endpoints: ['chat_completions', 'responses'],
price_data: {
main: { input: 1.5, output: 2 },
batch: { input: 0.75, output: 1 },
},
} as const satisfies ModelSpec
export {gpt_3_5_0301_spec as 'gpt-3.5-0301'}
export {gpt_3_5_0301_spec as 'gpt-3.5'}
// - gpt-3.5-turbo-0613
const gpt_3_5_turbo_0613_spec = {
...gpt_3_5_turbo_0125_spec,
name: 'gpt-3.5-turbo-0613',
slug: 'gpt-3-5-turbo-0613',
supported_endpoints: ['chat_completions', 'responses', 'batch'],
price_data: {
main: { input: 1.5, output: 2 },
batch: { input: 0.75, output: 1 },
},
} as const satisfies ModelSpec
export {gpt_3_5_turbo_0613_spec as 'gpt-3.5-turbo-0613'}
// - gpt-4-1106-preview
const gpt_4_1106_preview_spec = {
...gpt_4_0613_spec,
name: 'gpt-4-1106-preview',
slug: 'gpt-4-1106-preview',
performance: 2,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 128e3,
max_output_tokens: 4_096,
supported_features: ['fine_tuning'],
supported_endpoints: ['chat_completions', 'responses', 'assistants'],
price_data: {
main: { input: 10, output: 30 },
batch: { input: 5, output: 15 },
},
} as const satisfies ModelSpec
export {gpt_4_1106_preview_spec as 'gpt-4-1106-preview'}
// - gpt-4-32k
const gpt_4_32k_config = {
name: 'gpt-4-32k',
slug: 'gpt-4-32k',
display_name: 'GPT-4-32k',
current_snapshot: 'gpt-4-32k',
tagline: 'Legacy GPT-4 model with a 32k context window',
description:
'Legacy version of GPT-4 with a 32,768 token context window.',
type: 'chat',
snapshots: ['gpt-4-32k'],
point_to: 'gpt-4o',
deprecated: true,
} as const satisfies ModelConfig
const gpt_4_32k_spec = {
...gpt_4_0613_spec,
name: 'gpt-4-32k',
slug: 'gpt-4-32k',
context_window: 32_768,
max_output_tokens: 8_192,
supported_endpoints: [
'chat_completions',
'responses',
'assistants',
],
price_data: {
main: { input: 60, output: 120 },
batch: { input: 30, output: 60 },
},
} as const satisfies ModelSpec
export { gpt_4_32k_spec as 'gpt-4-32k' }
//
// --- BELOW ARE LEGACY, NO LONGER SUPPORTED MODELS ---
//
// --- GPT-2 ---
const gpt_2_spec = {
name: 'gpt-2',
slug: 'gpt-2',
modalities: { input: ['text'], output: ['text'] },
context_window: 1_024,
max_output_tokens: 1_024,
supported_endpoints: [],
reasoning_tokens: false,
deprecated: true,
} as const satisfies ModelSpec
const gpt2_spec = {
...gpt_2_spec,
name: 'gpt2',
slug: 'gpt2',
} as const satisfies ModelSpec
export { gpt_2_spec as 'gpt-2', gpt2_spec as gpt2 }
// --- text-ada-001 ---
const text_ada_config = {
name: 'text-ada',
slug: 'text-ada',
display_name: 'Text Ada 001',
current_snapshot: 'text-ada-001',
tagline: 'Text Ada 001',
description: 'Model for lightweight tasks.',
type: 'other', // Legacy completions model
snapshots: ['text-ada-001'],
point_to: 'gpt-3.5-turbo-instruct',
deprecated: true,
} as const satisfies ModelConfig
const text_ada_001_spec = {
name: 'text-ada-001',
slug: 'text-ada-001',
performance: 1, // Assuming lowest performance for old models
latency: 3, // Assuming higher latency for old models
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { text_ada_001_spec as 'text-ada-001' }
// --- text-babbage-001 ---
const text_babbage_config = {
name: 'text-babbage',
slug: 'text-babbage',
display_name: 'Text Babbage 001',
current_snapshot: 'text-babbage-001',
tagline: 'Text Babbage 001',
description: 'Model for efficient processing.',
type: 'other', // Legacy completions model
snapshots: ['text-babbage-001'],
point_to: 'gpt-3.5-turbo-instruct',
deprecated: true,
} as const satisfies ModelConfig
const text_babbage_001_spec = {
name: 'text-babbage-001',
slug: 'text-babbage-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { text_babbage_001_spec as 'text-babbage-001' }
// --- text-curie-001 ---
const text_curie_config = {
name: 'text-curie',
slug: 'text-curie',
display_name: 'Text Curie 001',
current_snapshot: 'text-curie-001',
tagline: 'Text Curie 001',
description: 'Mid-range model for various tasks.',
type: 'other', // Legacy completions model
snapshots: ['text-curie-001'],
point_to: 'gpt-3.5-turbo-instruct',
deprecated: true,
} as const satisfies ModelConfig
const text_curie_001_spec = {
name: 'text-curie-001',
slug: 'text-curie-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { text_curie_001_spec as 'text-curie-001' }
// --- text-davinci (001, 002, 003) ---
const text_davinci_config = {
name: 'text-davinci',
slug: 'text-davinci',
display_name: 'Text Davinci',
current_snapshot: 'text-davinci-003', // Points to the latest of these legacy ones
tagline: 'Legacy high-performance text generation models',
description:
'Legacy high-performance model for complex tasks. Includes 001, 002, and 003 versions.',
type: 'other', // Legacy completions model
snapshots: ['text-davinci-003', 'text-davinci-002', 'text-davinci-001'],
point_to: 'gpt-3.5-turbo-instruct',
deprecated: true,
} as const satisfies ModelConfig
const text_davinci_001_spec = {
name: 'text-davinci-001',
slug: 'text-davinci-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { text_davinci_001_spec as 'text-davinci-001' }
const text_davinci_002_spec = {
name: 'text-davinci-002',
slug: 'text-davinci-002',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 4_000, // text-davinci-002/003 had larger context
max_output_tokens: 4_000,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { text_davinci_002_spec as 'text-davinci-002' }
const text_davinci_003_spec = {
name: 'text-davinci-003',
slug: 'text-davinci-003',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 4_000,
max_output_tokens: 4_000,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { text_davinci_003_spec as 'text-davinci-003' }
// --- ada ---
const ada_config = {
name: 'ada',
slug: 'ada',
display_name: 'Ada',
current_snapshot: 'ada', // No numbered version, so snapshot is 'ada'
tagline: 'Ada - Base model for lightweight tasks',
description: 'Base model for lightweight tasks.',
type: 'other', // Legacy base model for completions
snapshots: ['ada'],
point_to: 'babbage-002',
deprecated: true,
} as const satisfies ModelConfig
const ada_spec = {
name: 'ada', // Spec name is 'ada'
slug: 'ada',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { ada_spec as 'ada' }
// --- babbage ---
const babbage_config = {
name: 'babbage',
slug: 'babbage',
display_name: 'Babbage',
current_snapshot: 'babbage',
tagline: 'Babbage - Model for efficient processing',
description: 'Model for efficient processing.',
type: 'other', // Legacy base model for completions
snapshots: ['babbage'],
point_to: 'babbage-002',
deprecated: true,
} as const satisfies ModelConfig
const babbage_spec = {
name: 'babbage',
slug: 'babbage',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { babbage_spec as 'babbage' }
// --- curie ---
const curie_config = {
name: 'curie',
slug: 'curie',
display_name: 'Curie',
current_snapshot: 'curie',
tagline: 'Curie - Mid-range model for a variety of applications',
description: 'Mid-range model for a variety of applications.',
type: 'other', // Legacy base model for completions
snapshots: ['curie'],
point_to: 'davinci-002',
deprecated: true,
} as const satisfies ModelConfig
const curie_spec = {
name: 'curie',
slug: 'curie',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { curie_spec as 'curie' }
// --- davinci ---
const davinci_config = {
name: 'davinci',
slug: 'davinci',
display_name: 'Davinci',
current_snapshot: 'davinci',
tagline: 'Davinci - High-performance legacy model',
description: 'High-performance legacy model.',
type: 'other', // Legacy base model for completions
snapshots: ['davinci'],
point_to: 'davinci-002',
deprecated: true,
} as const satisfies ModelConfig
const davinci_spec = {
name: 'davinci',
slug: 'davinci',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { davinci_spec as 'davinci' }
// --- code-davinci (001, 002) ---
const code_davinci_config = {
name: 'code-davinci',
slug: 'code-davinci',
display_name: 'Code Davinci',
current_snapshot: 'code-davinci-002',
tagline: 'Legacy code generation models (Davinci series)',
description: 'Legacy coding model. Includes 001 and 002 versions.',
type: 'other', // Code-specific
snapshots: ['code-davinci-002', 'code-davinci-001'],
point_to: 'gpt-4o',
deprecated: true,
} as const satisfies ModelConfig
const code_davinci_001_spec = {
name: 'code-davinci-001',
slug: 'code-davinci-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] }, // Code is text
context_window: 8_000,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { code_davinci_001_spec as 'code-davinci-001' }
const code_davinci_002_spec = {
name: 'code-davinci-002',
slug: 'code-davinci-002',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_000,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { code_davinci_002_spec as 'code-davinci-002' }
// --- davinci-codex ---
const davinci_codex_config = {
name: 'davinci-codex', // Exact match
slug: 'davinci-codex',
display_name: 'Code Davinci 001 (davinci-codex)',
current_snapshot: 'davinci-codex',
tagline: 'Alias for Code Davinci 001.',
description: 'Alias for Code Davinci 001. Older coding model.',
type: 'other', // Code-specific
snapshots: ['davinci-codex'],
point_to: 'gpt-4o',
deprecated: true,
} as const satisfies ModelConfig
const davinci_codex_spec = {
name: 'davinci-codex', // Spec name matches snapshot
slug: 'davinci-codex',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_000, // Same as code-davinci-001
max_output_tokens: 2_048, // Same as code-davinci-001
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { davinci_codex_spec as 'davinci-codex' }
// --- code-davinci-edit-001 ---
const code_davinci_edit_config = {
name: 'code-davinci-edit',
slug: 'code-davinci-edit',
display_name: 'Code Davinci Edit 001',
current_snapshot: 'code-davinci-edit-001',
tagline: 'Older coding edit model.',
description: 'Older coding edit model.',
type: 'other', // Edit-specific
snapshots: ['code-davinci-edit-001'],
deprecated: true,
} as const satisfies ModelConfig
const code_davinci_edit_001_spec = {
name: 'code-davinci-edit-001',
slug: 'code-davinci-edit-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048, // Edit models often had smaller context
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'], // No specific 'edit' endpoint in new list
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { code_davinci_edit_001_spec as 'code-davinci-edit-001' }
// --- code-cushman (001, 002) ---
const code_cushman_config = {
name: 'code-cushman',
slug: 'code-cushman',
display_name: 'Code Cushman',
current_snapshot: 'code-cushman-002',
tagline: 'Legacy code generation models (Cushman series)',
description: 'Legacy model for coding. Includes 001 and 002 versions.',
type: 'other', // Code-specific
snapshots: ['code-cushman-002', 'code-cushman-001'],
point_to: 'gpt-4o',
deprecated: true,
} as const satisfies ModelConfig
const code_cushman_001_spec = {
name: 'code-cushman-001',
slug: 'code-cushman-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { code_cushman_001_spec as 'code-cushman-001' }
const code_cushman_002_spec = {
name: 'code-cushman-002',
slug: 'code-cushman-002',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { code_cushman_002_spec as 'code-cushman-002' }
// --- cushman-codex ---
const cushman_codex_config = {
name: 'cushman-codex', // Exact match
slug: 'cushman-codex',
display_name: 'Code Cushman 001 (cushman-codex)',
current_snapshot: 'cushman-codex',
tagline: 'Alias for Code Cushman 001.',
description: 'Alias for Code Cushman 001. Older model for coding tasks.',
type: 'other', // Code-specific
snapshots: ['cushman-codex'],
point_to: 'gpt-4o',
deprecated: true,
} as const satisfies ModelConfig
const cushman_codex_spec = {
name: 'cushman-codex', // Spec name matches snapshot
slug: 'cushman-codex',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048, // Same as code-cushman-001
max_output_tokens: 2_048, // Same as code-cushman-001
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { cushman_codex_spec as 'cushman-codex' }
// --- code-search-ada-code-001 ---
const code_search_ada_code_config = {
name: 'code-search-ada-code',
slug: 'code-search-ada-code',
display_name: 'Code Search Ada Code 001',
current_snapshot: 'code-search-ada-code-001',
tagline: 'Embedding model for code search.',
description: 'Embedding model for code search.',
type: 'other', // Embedding model
snapshots: ['code-search-ada-code-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const code_search_ada_code_001_spec = {
name: 'code-search-ada-code-001',
slug: 'code-search-ada-code-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] }, // Output is an embedding vector (represented as text)
context_window: 8_191, // maxInput for embedding models
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { code_search_ada_code_001_spec as 'code-search-ada-code-001' }
// --- code-search-ada-text-001 ---
const code_search_ada_text_config = {
name: 'code-search-ada-text',
slug: 'code-search-ada-text',
display_name: 'Code Search Ada Text 001',
current_snapshot: 'code-search-ada-text-001',
tagline: 'Embedding model for text search in code context.',
description: 'Embedding model for text search in code context.',
type: 'other', // Embedding model
snapshots: ['code-search-ada-text-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const code_search_ada_text_001_spec = {
name: 'code-search-ada-text-001',
slug: 'code-search-ada-text-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { code_search_ada_text_001_spec as 'code-search-ada-text-001' }
// --- text-davinci-edit-001 ---
const text_davinci_edit_config = {
name: 'text-davinci-edit',
slug: 'text-davinci-edit',
display_name: 'Text Davinci Edit 001',
current_snapshot: 'text-davinci-edit-001',
tagline: 'Older text edit model.',
description: 'Older text edit model.',
type: 'other', // Edit-specific
snapshots: ['text-davinci-edit-001'],
deprecated: true,
} as const satisfies ModelConfig
const text_davinci_edit_001_spec = {
name: 'text-davinci-edit-001',
slug: 'text-davinci-edit-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 2_048,
max_output_tokens: 2_048,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['completions'], // No specific 'edit' endpoint
reasoning_tokens: false,
price_data: { main: { input: 20 } },
} as const satisfies ModelSpec
export { text_davinci_edit_001_spec as 'text-davinci-edit-001' }
// --- text-similarity-ada-001 ---
const text_similarity_ada_config = {
name: 'text-similarity-ada',
slug: 'text-similarity-ada',
display_name: 'Text Similarity Ada 001',
current_snapshot: 'text-similarity-ada-001',
tagline: 'Embedding model for similarity tasks.',
description: 'Embedding model for similarity tasks.',
type: 'other', // Embedding
snapshots: ['text-similarity-ada-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_similarity_ada_001_spec = {
name: 'text-similarity-ada-001',
slug: 'text-similarity-ada-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { text_similarity_ada_001_spec as 'text-similarity-ada-001' }
// --- text-search-ada-doc-001 ---
const text_search_ada_doc_config = {
name: 'text-search-ada-doc',
slug: 'text-search-ada-doc',
display_name: 'Text Search Ada Doc 001',
current_snapshot: 'text-search-ada-doc-001',
tagline: 'Embedding model for document search.',
description: 'Embedding model for document search.',
type: 'other', // Embedding
snapshots: ['text-search-ada-doc-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_ada_doc_001_spec = {
name: 'text-search-ada-doc-001',
slug: 'text-search-ada-doc-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { text_search_ada_doc_001_spec as 'text-search-ada-doc-001' }
// --- text-search-ada-query-001 ---
const text_search_ada_query_config = {
name: 'text-search-ada-query',
slug: 'text-search-ada-query',
display_name: 'Text Search Ada Query 001',
current_snapshot: 'text-search-ada-query-001',
tagline: 'Embedding model for query search.',
description: 'Embedding model for query search.',
type: 'other', // Embedding
snapshots: ['text-search-ada-query-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_ada_query_001_spec = {
name: 'text-search-ada-query-001',
slug: 'text-search-ada-query-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.4 } },
} as const satisfies ModelSpec
export { text_search_ada_query_001_spec as 'text-search-ada-query-001' }
// --- text-similarity-babbage-001 ---
const text_similarity_babbage_config = {
name: 'text-similarity-babbage',
slug: 'text-similarity-babbage',
display_name: 'Text Similarity Babbage 001',
current_snapshot: 'text-similarity-babbage-001',
tagline: 'Embedding model for similarity tasks.',
description: 'Embedding model for similarity tasks.',
type: 'other', // Embedding
snapshots: ['text-similarity-babbage-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_similarity_babbage_001_spec = {
name: 'text-similarity-babbage-001',
slug: 'text-similarity-babbage-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { text_similarity_babbage_001_spec as 'text-similarity-babbage-001' }
// --- text-search-babbage-doc-001 ---
const text_search_babbage_doc_config = {
name: 'text-search-babbage-doc',
slug: 'text-search-babbage-doc',
display_name: 'Text Search Babbage Doc 001',
current_snapshot: 'text-search-babbage-doc-001',
tagline: 'Embedding model for document search.',
description: 'Embedding model for document search.',
type: 'other', // Embedding
snapshots: ['text-search-babbage-doc-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_babbage_doc_001_spec = {
name: 'text-search-babbage-doc-001',
slug: 'text-search-babbage-doc-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { text_search_babbage_doc_001_spec as 'text-search-babbage-doc-001' }
// --- text-search-babbage-query-001 ---
const text_search_babbage_query_config = {
name: 'text-search-babbage-query',
slug: 'text-search-babbage-query',
display_name: 'Text Search Babbage Query 001',
current_snapshot: 'text-search-babbage-query-001',
tagline: 'Embedding model for query search.',
description: 'Embedding model for query search.',
type: 'other', // Embedding
snapshots: ['text-search-babbage-query-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_babbage_query_001_spec = {
name: 'text-search-babbage-query-001',
slug: 'text-search-babbage-query-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { text_search_babbage_query_001_spec as 'text-search-babbage-query-001' }
// --- code-search-babbage-code-001 ---
const code_search_babbage_code_config = {
name: 'code-search-babbage-code',
slug: 'code-search-babbage-code',
display_name: 'Code Search Babbage Code 001',
current_snapshot: 'code-search-babbage-code-001',
tagline: 'Embedding model for code search.',
description: 'Embedding model for code search.',
type: 'other', // Embedding
snapshots: ['code-search-babbage-code-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const code_search_babbage_code_001_spec = {
name: 'code-search-babbage-code-001',
slug: 'code-search-babbage-code-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { code_search_babbage_code_001_spec as 'code-search-babbage-code-001' }
// --- code-search-babbage-text-001 ---
const code_search_babbage_text_config = {
name: 'code-search-babbage-text',
slug: 'code-search-babbage-text',
display_name: 'Code Search Babbage Text 001',
current_snapshot: 'code-search-babbage-text-001',
tagline: 'Embedding model for text search in code context.',
description: 'Embedding model for text search in code context.',
type: 'other', // Embedding
snapshots: ['code-search-babbage-text-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const code_search_babbage_text_001_spec = {
name: 'code-search-babbage-text-001',
slug: 'code-search-babbage-text-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 0.5 } },
} as const satisfies ModelSpec
export { code_search_babbage_text_001_spec as 'code-search-babbage-text-001' }
// --- text-similarity-curie-001 ---
const text_similarity_curie_config = {
name: 'text-similarity-curie',
slug: 'text-similarity-curie',
display_name: 'Text Similarity Curie 001',
current_snapshot: 'text-similarity-curie-001',
tagline: 'Embedding model for similarity tasks.',
description: 'Embedding model for similarity tasks.',
type: 'other', // Embedding
snapshots: ['text-similarity-curie-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_similarity_curie_001_spec = {
name: 'text-similarity-curie-001',
slug: 'text-similarity-curie-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { text_similarity_curie_001_spec as 'text-similarity-curie-001' }
// --- text-search-curie-doc-001 ---
const text_search_curie_doc_config = {
name: 'text-search-curie-doc',
slug: 'text-search-curie-doc',
display_name: 'Text Search Curie Doc 001',
current_snapshot: 'text-search-curie-doc-001',
tagline: 'Embedding model for document search.',
description: 'Embedding model for document search.',
type: 'other', // Embedding
snapshots: ['text-search-curie-doc-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_curie_doc_001_spec = {
name: 'text-search-curie-doc-001',
slug: 'text-search-curie-doc-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { text_search_curie_doc_001_spec as 'text-search-curie-doc-001' }
// --- text-search-curie-query-001 ---
const text_search_curie_query_config = {
name: 'text-search-curie-query',
slug: 'text-search-curie-query',
display_name: 'Text Search Curie Query 001',
current_snapshot: 'text-search-curie-query-001',
tagline: 'Embedding model for query search.',
description: 'Embedding model for query search.',
type: 'other', // Embedding
snapshots: ['text-search-curie-query-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_curie_query_001_spec = {
name: 'text-search-curie-query-001',
slug: 'text-search-curie-query-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 2 } },
} as const satisfies ModelSpec
export { text_search_curie_query_001_spec as 'text-search-curie-query-001' }
// --- text-similarity-davinci-001 ---
const text_similarity_davinci_config = {
name: 'text-similarity-davinci',
slug: 'text-similarity-davinci',
display_name: 'Text Similarity Davinci 001',
current_snapshot: 'text-similarity-davinci-001',
tagline: 'Embedding model for similarity tasks.',
description: 'Embedding model for similarity tasks.',
type: 'other', // Embedding
snapshots: ['text-similarity-davinci-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_similarity_davinci_001_spec = {
name: 'text-similarity-davinci-001',
slug: 'text-similarity-davinci-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },
context_window: 8_191,
knowledge_cutoff: new Date(Date.UTC(2_021, 9 - 1, 1)), // 2021-09
supported_endpoints: ['embeddings'],
reasoning_tokens: false,
price_data: { main: { input: 200 } },
} as const satisfies ModelSpec
export { text_similarity_davinci_001_spec as 'text-similarity-davinci-001' }
// --- text-search-davinci-doc-001 ---
const text_search_davinci_doc_config = {
name: 'text-search-davinci-doc',
slug: 'text-search-davinci-doc',
display_name: 'Text Search Davinci Doc 001',
current_snapshot: 'text-search-davinci-doc-001',
tagline: 'Embedding model for document search.',
description: 'Embedding model for document search.',
type: 'other', // Embedding
snapshots: ['text-search-davinci-doc-001'],
point_to: 'text-embedding-3-small',
deprecated: true,
} as const satisfies ModelConfig
const text_search_davinci_doc_001_spec = {
name: 'text-search-davinci-doc-001',
slug: 'text-search-davinci-doc-001',
performance: 1,
latency: 3,
modalities: { input: ['text'], output: ['text'] },