Skip to content

Commit

Permalink
feat: Add support of gpt-4o-mini
Browse files Browse the repository at this point in the history
chore(version): bump version from `3.11.1` to `3.11.2`
  • Loading branch information
XiaomaiTX committed Jul 19, 2024
1 parent 77ab253 commit 2efef76
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "chatnio",
"version": "3.11.1"
"version": "3.11.2"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 2 additions & 0 deletions app/src/admin/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export const ChannelInfos: Record<string, ChannelInfo> = {
"gpt-4-32k-0613",
"gpt-4o",
"gpt-4o-2024-05-13",
"gpt-4o-mini",
"gpt-4o-mini-2024-07-18",
"dalle",
"dall-e-2",
"dall-e-3",
Expand Down
2 changes: 2 additions & 0 deletions app/src/admin/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export const modelColorMapper: Record<string, string> = {
"gpt-4-32k-0314": "purple-600",
"gpt-4o": "purple-600",
"gpt-4o-2024-05-13": "purple-600",
"gpt-4o-mini": "purple-600",
"gpt-4o-mini-2024-07-18": "purple-600",

"dall-e-3": "purple-700",

Expand Down
5 changes: 5 additions & 0 deletions app/src/admin/datasets/charge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export const pricing: PricingDataset = [
input: 0.005,
output: 0.015,
},
{
models: ["gpt-4o-mini", "gpt-4o-mini-2024-07-18"],
input: 0.00015,
output: 0.0006,
},

{
models: ["gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613"],
Expand Down

0 comments on commit 2efef76

Please sign in to comment.