Skip to content

Commit

Permalink
feat: add gpt-4-turbo model
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaomaiTX committed May 20, 2024
1 parent b071374 commit 96fad63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/admin/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ export const ChannelInfos: Record<string, ChannelInfo> = {
"gpt-4-turbo-preview",
"gpt-4-vision-preview",
"gpt-4-1106-vision-preview",
"gpt-4-turbo",
"gpt-4-turbo-2024-04-09",
"gpt-4-32k",
"gpt-4-32k-0314",
"gpt-4-32k-0613",
Expand Down Expand Up @@ -144,6 +146,8 @@ export const ChannelInfos: Record<string, ChannelInfo> = {
"gpt-4-turbo-preview",
"gpt-4-vision-preview",
"gpt-4-1106-vision-preview",
"gpt-4-turbo",
"gpt-4-turbo-2024-04-09",
"gpt-4-32k",
"gpt-4-32k-0314",
"gpt-4-32k-0613",
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 @@ -23,6 +23,8 @@ export const modelColorMapper: Record<string, string> = {
"gpt-4-turbo-preview": "purple-600",
"gpt-4-1106-vision-preview": "purple-600",
"gpt-4-vision-preview": "purple-600",
"gpt-4-turbo": "purple-600",
"gpt-4-turbo-2024-04-09": "purple-600",
"gpt-4-0613": "purple-600",
"gpt-4-0314": "purple-600",
"gpt-4-all": "purple-600",
Expand Down
2 changes: 2 additions & 0 deletions app/src/admin/datasets/charge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const pricing: PricingDataset = [
"gpt-4-turbo-preview",
"gpt-4-1106-vision-preview",
"gpt-4-vision-preview",
"gpt-4-turbo",
"gpt-4-turbo-2024-04-09",
],
input: 0.01,
output: 0.03,
Expand Down

0 comments on commit 96fad63

Please sign in to comment.