Skip to content

Commit 34e295a

Browse files
authored
Merge pull request #107 from token-js/pate/add-gpt-4o-mini
Add gpt-4o-mini to models.ts
2 parents 4bee317 + 0823e3b commit 34e295a

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.changeset/serious-bags-judge.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'token.js': patch
3+
---
4+
5+
Add gpt-4o mini

docs/providers/openai.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ main()
4141
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
4242
| ---------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
4343
| gpt-4o |||||||
44+
| gpt-4o-mini |||||||
4445
| gpt-4o-2024-05-13 |||||||
4546
| gpt-4-turbo |||||||
4647
| gpt-4-turbo-2024-04-09 |||||||

src/models.ts

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const models = {
1212
openai: {
1313
models: [
1414
'gpt-4o',
15+
'gpt-4o-mini',
1516
'gpt-4o-2024-05-13',
1617
'gpt-4-turbo',
1718
'gpt-4-turbo-2024-04-09',
@@ -36,6 +37,7 @@ export const models = {
3637
supportsCompletion: true,
3738
supportsStreaming: [
3839
'gpt-4o',
40+
'gpt-4o-mini',
3941
'gpt-4o-2024-05-13',
4042
'gpt-4-turbo',
4143
'gpt-4-turbo-2024-04-09',
@@ -59,6 +61,7 @@ export const models = {
5961
] as const,
6062
supportsJSON: [
6163
'gpt-4o',
64+
'gpt-4o-mini',
6265
'gpt-4o-2024-05-13',
6366
'gpt-4-turbo',
6467
'gpt-4-turbo-2024-04-09',
@@ -72,6 +75,7 @@ export const models = {
7275
] as const,
7376
supportsImages: [
7477
'gpt-4o',
78+
'gpt-4o-mini',
7579
'gpt-4o-2024-05-13',
7680
'gpt-4-turbo',
7781
'gpt-4-turbo-2024-04-09',
@@ -82,6 +86,7 @@ export const models = {
8286
] as const,
8387
supportsToolCalls: [
8488
'gpt-4o',
89+
'gpt-4o-mini',
8590
'gpt-4o-2024-05-13',
8691
'gpt-4-turbo',
8792
'gpt-4-turbo-2024-04-09',

0 commit comments

Comments
 (0)