Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
112f9af0
authored
Nov 23, 2024
by
Calcium-Ion
Committed by
GitHub
Nov 23, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #579 from HynoR/main
Chore: support gpt-4o-2024-11-20
parents
325f3167
1a2e5da1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
common/model-ratio.go
+12
-11
relay/channel/openai/constant.go
+1
-1
No files found.
common/model-ratio.go
View file @
112f9af0
...
...
@@ -33,17 +33,18 @@ var defaultModelRatio = map[string]float64{
"gpt-4-32k"
:
30
,
//"gpt-4-32k-0314": 30, //deprecated
"gpt-4-32k-0613"
:
30
,
"gpt-4-1106-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-0125-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-turbo-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-vision-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-1106-vision-preview"
:
5
,
// $0.01 / 1K tokens
"chatgpt-4o-latest"
:
2.5
,
// $0.01 / 1K tokens
"gpt-4o"
:
1.25
,
// $0.01 / 1K tokens
"gpt-4o-audio-preview"
:
1.25
,
// $0.0015 / 1K tokens
"gpt-4o-audio-preview-2024-10-01"
:
1.25
,
// $0.0015 / 1K tokens
"gpt-4o-2024-08-06"
:
1.25
,
// $0.01 / 1K tokens
"gpt-4o-2024-05-13"
:
2.5
,
"gpt-4-1106-preview"
:
5
,
// $10 / 1M tokens
"gpt-4-0125-preview"
:
5
,
// $10 / 1M tokens
"gpt-4-turbo-preview"
:
5
,
// $10 / 1M tokens
"gpt-4-vision-preview"
:
5
,
// $10 / 1M tokens
"gpt-4-1106-vision-preview"
:
5
,
// $10 / 1M tokens
"chatgpt-4o-latest"
:
2.5
,
// $5 / 1M tokens
"gpt-4o"
:
1.25
,
// $2.5 / 1M tokens
"gpt-4o-audio-preview"
:
1.25
,
// $2.5 / 1M tokens
"gpt-4o-audio-preview-2024-10-01"
:
1.25
,
// $2.5 / 1M tokens
"gpt-4o-2024-05-13"
:
2.5
,
// $5 / 1M tokens
"gpt-4o-2024-08-06"
:
1.25
,
// $2.5 / 1M tokens
"gpt-4o-2024-11-20"
:
1.25
,
// $2.5 / 1M tokens
"gpt-4o-realtime-preview"
:
2.5
,
"o1-preview"
:
7.5
,
"o1-preview-2024-09-12"
:
7.5
,
...
...
relay/channel/openai/constant.go
View file @
112f9af0
...
...
@@ -9,7 +9,7 @@ var ModelList = []string{
"gpt-4-turbo-preview"
,
"gpt-4-turbo"
,
"gpt-4-turbo-2024-04-09"
,
"gpt-4-vision-preview"
,
"chatgpt-4o-latest"
,
"gpt-4o"
,
"gpt-4o-2024-05-13"
,
"gpt-4o-2024-08-06"
,
"gpt-4o"
,
"gpt-4o-2024-05-13"
,
"gpt-4o-2024-08-06"
,
"gpt-4o-2024-11-20"
,
"gpt-4o-mini"
,
"gpt-4o-mini-2024-07-18"
,
"o1-preview"
,
"o1-preview-2024-09-12"
,
"o1-mini"
,
"o1-mini-2024-09-12"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment