feat: Add support of gpt-4o-mini

chore(version): bump version from `3.11.1` to `3.11.2`
This commit is contained in:
XiaomaiTX 2024-07-19 20:38:56 +08:00
parent 77ab253f45
commit 2efef764c0
4 changed files with 10 additions and 1 deletions

View File

@ -8,7 +8,7 @@
},
"package": {
"productName": "chatnio",
"version": "3.11.1"
"version": "3.11.2"
},
"tauri": {
"allowlist": {

View File

@ -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",

View File

@ -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",

View File

@ -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"],