Skip to content

Commit b5d8fa6

Browse files
committed
feat: Support o1-preview, o1-mini, gemini-1.5-flash-8b
1 parent 0df1012 commit b5d8fa6

File tree

7 files changed

+3860
-4663
lines changed

7 files changed

+3860
-4663
lines changed

.changeset/healthy-bikes-switch.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+
Support o1-preview and o1-mini

.changeset/heavy-pets-carry.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+
Support gemini-1.5-flash-8b

docs/providers/gemini.md

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

41-
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
42-
| ---------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
43-
| gemini-1.5-pro |||||||
44-
| gemini-1.5-flash |||||||
45-
| gemini-1.0-pro |||||||
41+
| Model | Chat Completion | Streaming | JSON Output | Image Input | Function Calling | N > 1 |
42+
| ------------------- | --------------- | --------- | ----------- | ----------- | ---------------- | ----- |
43+
| gemini-1.5-pro |||||||
44+
| gemini-1.5-flash |||||||
45+
| gemini-1.5-flash-8b |||||||
46+
| gemini-1.0-pro |||||||
4647

4748
### Legend
4849
| Symbol | Description |

docs/providers/openai.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ main()
6363
| gpt-3.5-turbo-1106 |||||||
6464
| gpt-3.5-turbo-0125 |||||||
6565
| gpt-3.5-turbo-16k-0613 |||||||
66+
| o1-mini |||||||
67+
| o1-mini-2024-09-12 |||||||
68+
| o1-preview |||||||
69+
| o1-preview-2024-09-12 |||||||
6670

6771
### Legend
6872
| Symbol | Description |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"cohere-ai": "^7.10.6",
3737
"mime-types": "^2.1.35",
3838
"nanoid": "^5.0.7",
39-
"openai": "^4.52.2"
39+
"openai": "^4.72.0"
4040
},
4141
"devDependencies": {
4242
"@babel/eslint-parser": "^7.18.2",

0 commit comments

Comments
 (0)