Skip to content

Commit b0ba805

Browse files
authored
Merge pull request #155 from GravyPouch/main
2 parents 386f6d8 + 3d76ec4 commit b0ba805

File tree

3 files changed

+47
-30
lines changed

3 files changed

+47
-30
lines changed

.changeset/yummy-poems-see.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'token.js': patch
3+
---
4+
5+
Added gpt-4.5 models

docs/providers/openai.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,36 +38,38 @@ main()
3838
<!-- compatibility -->
3939
## Supported Models
4040

41-
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
42-
| ---------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
43-
| gpt-4o |||||||
44-
| gpt-4o-mini |||||||
45-
| gpt-4o-2024-05-13 |||||||
46-
| gpt-4o-2024-08-06 |||||||
47-
| gpt-4-turbo |||||||
48-
| gpt-4-turbo-2024-04-09 |||||||
49-
| gpt-4-0125-preview |||||||
50-
| gpt-4-turbo-preview |||||||
51-
| gpt-4-1106-preview |||||||
52-
| gpt-4-vision-preview |||||||
53-
| gpt-4 |||||||
54-
| gpt-4-0314 |||||||
55-
| gpt-4-0613 |||||||
56-
| gpt-4-32k |||||||
57-
| gpt-4-32k-0314 |||||||
58-
| gpt-4-32k-0613 |||||||
59-
| gpt-3.5-turbo |||||||
60-
| gpt-3.5-turbo-16k |||||||
61-
| gpt-3.5-turbo-0301 |||||||
62-
| gpt-3.5-turbo-0613 |||||||
63-
| gpt-3.5-turbo-1106 |||||||
64-
| gpt-3.5-turbo-0125 |||||||
65-
| gpt-3.5-turbo-16k-0613 |||||||
66-
| o3-mini |||||||
67-
| o1-mini |||||||
68-
| o1-mini-2024-09-12 |||||||
69-
| o1-preview |||||||
70-
| o1-preview-2024-09-12 |||||||
41+
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
42+
| -------------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
43+
| gpt-4.5-preview |||||||
44+
| gpt-4.5-preview-2025-02-27 |||||||
45+
| gpt-4o |||||||
46+
| gpt-4o-mini |||||||
47+
| gpt-4o-2024-05-13 |||||||
48+
| gpt-4o-2024-08-06 |||||||
49+
| gpt-4-turbo |||||||
50+
| gpt-4-turbo-2024-04-09 |||||||
51+
| gpt-4-0125-preview |||||||
52+
| gpt-4-turbo-preview |||||||
53+
| gpt-4-1106-preview |||||||
54+
| gpt-4-vision-preview |||||||
55+
| gpt-4 |||||||
56+
| gpt-4-0314 |||||||
57+
| gpt-4-0613 |||||||
58+
| gpt-4-32k |||||||
59+
| gpt-4-32k-0314 |||||||
60+
| gpt-4-32k-0613 |||||||
61+
| gpt-3.5-turbo |||||||
62+
| gpt-3.5-turbo-16k |||||||
63+
| gpt-3.5-turbo-0301 |||||||
64+
| gpt-3.5-turbo-0613 |||||||
65+
| gpt-3.5-turbo-1106 |||||||
66+
| gpt-3.5-turbo-0125 |||||||
67+
| gpt-3.5-turbo-16k-0613 |||||||
68+
| o3-mini |||||||
69+
| o1-mini |||||||
70+
| o1-mini-2024-09-12 |||||||
71+
| o1-preview |||||||
72+
| o1-preview-2024-09-12 |||||||
7173

7274
### Legend
7375
| Symbol | Description |

src/models.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const TableDisplayNames = {
1111
export const models = {
1212
openai: {
1313
models: [
14+
'gpt-4.5-preview',
15+
'gpt-4.5-preview-2025-02-27',
1416
'gpt-4o',
1517
'gpt-4o-mini',
1618
'gpt-4o-2024-05-13',
@@ -42,6 +44,8 @@ export const models = {
4244
] as const,
4345
supportsCompletion: true,
4446
supportsStreaming: [
47+
'gpt-4.5-preview',
48+
'gpt-4.5-preview-2025-02-27',
4549
'gpt-4o',
4650
'gpt-4o-mini',
4751
'gpt-4o-2024-05-13',
@@ -68,6 +72,8 @@ export const models = {
6872
'o3-mini',
6973
] as const,
7074
supportsJSON: [
75+
'gpt-4.5-preview',
76+
'gpt-4.5-preview-2025-02-27',
7177
'gpt-4o',
7278
'gpt-4o-mini',
7379
'gpt-4o-2024-05-13',
@@ -84,6 +90,8 @@ export const models = {
8490
'o3-mini',
8591
] as const,
8692
supportsImages: [
93+
'gpt-4.5-preview',
94+
'gpt-4.5-preview-2025-02-27',
8795
'gpt-4o',
8896
'gpt-4o-mini',
8997
'gpt-4o-2024-05-13',
@@ -96,6 +104,8 @@ export const models = {
96104
'gpt-4-vision-preview',
97105
] as const,
98106
supportsToolCalls: [
107+
'gpt-4.5-preview',
108+
'gpt-4.5-preview-2025-02-27',
99109
'gpt-4o',
100110
'gpt-4o-mini',
101111
'gpt-4o-2024-05-13',

0 commit comments

Comments
 (0)