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
222f5ec1
authored
May 24, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 移除已废弃模型
parent
313c16f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
common/model-ratio.go
+13
-14
relay/channel/openai/constant.go
+5
-5
No files found.
common/model-ratio.go
View file @
222f5ec1
...
@@ -40,19 +40,19 @@ var DefaultModelRatio = map[string]float64{
...
@@ -40,19 +40,19 @@ var DefaultModelRatio = map[string]float64{
"gpt-4-turbo-2024-04-09"
:
5
,
// $0.01 / 1K tokens
"gpt-4-turbo-2024-04-09"
:
5
,
// $0.01 / 1K tokens
"gpt-3.5-turbo"
:
0.25
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo"
:
0.25
,
// $0.0015 / 1K tokens
//"gpt-3.5-turbo-0301": 0.75, //deprecated
//"gpt-3.5-turbo-0301": 0.75, //deprecated
"gpt-3.5-turbo-0613"
:
0.75
,
"gpt-3.5-turbo-0613"
:
0.75
,
"gpt-3.5-turbo-16k"
:
1.5
,
// $0.003 / 1K tokens
"gpt-3.5-turbo-16k"
:
1.5
,
// $0.003 / 1K tokens
"gpt-3.5-turbo-16k-0613"
:
1.5
,
"gpt-3.5-turbo-16k-0613"
:
1.5
,
"gpt-3.5-turbo-instruct"
:
0.75
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo-instruct"
:
0.75
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo-1106"
:
0.5
,
// $0.001 / 1K tokens
"gpt-3.5-turbo-1106"
:
0.5
,
// $0.001 / 1K tokens
"gpt-3.5-turbo-0125"
:
0.25
,
"gpt-3.5-turbo-0125"
:
0.25
,
"babbage-002"
:
0.2
,
// $0.0004 / 1K tokens
"babbage-002"
:
0.2
,
// $0.0004 / 1K tokens
"davinci-002"
:
1
,
// $0.002 / 1K tokens
"davinci-002"
:
1
,
// $0.002 / 1K tokens
"text-ada-001"
:
0.2
,
"text-ada-001"
:
0.2
,
"text-babbage-001"
:
0.25
,
"text-babbage-001"
:
0.25
,
"text-curie-001"
:
1
,
"text-curie-001"
:
1
,
"text-davinci-002"
:
10
,
//
"text-davinci-002": 10,
"text-davinci-003"
:
10
,
//
"text-davinci-003": 10,
"text-davinci-edit-001"
:
10
,
"text-davinci-edit-001"
:
10
,
"code-davinci-edit-001"
:
10
,
"code-davinci-edit-001"
:
10
,
"whisper-1"
:
15
,
// $0.006 / minute -> $0.006 / 150 words -> $0.006 / 200 tokens -> $0.03 / 1k tokens
"whisper-1"
:
15
,
// $0.006 / minute -> $0.006 / 150 words -> $0.006 / 200 tokens -> $0.03 / 1k tokens
...
@@ -150,7 +150,6 @@ var DefaultModelRatio = map[string]float64{
...
@@ -150,7 +150,6 @@ var DefaultModelRatio = map[string]float64{
}
}
var
DefaultModelPrice
=
map
[
string
]
float64
{
var
DefaultModelPrice
=
map
[
string
]
float64
{
"dall-e-2"
:
0.02
,
"dall-e-3"
:
0.04
,
"dall-e-3"
:
0.04
,
"gpt-4-gizmo-*"
:
0.1
,
"gpt-4-gizmo-*"
:
0.1
,
"mj_imagine"
:
0.1
,
"mj_imagine"
:
0.1
,
...
...
relay/channel/openai/constant.go
View file @
222f5ec1
package
openai
package
openai
var
ModelList
=
[]
string
{
var
ModelList
=
[]
string
{
"gpt-3.5-turbo"
,
"gpt-3.5-turbo-0
301"
,
"gpt-3.5-turbo-0
613"
,
"gpt-3.5-turbo-1106"
,
"gpt-3.5-turbo-0125"
,
"gpt-3.5-turbo"
,
"gpt-3.5-turbo-0613"
,
"gpt-3.5-turbo-1106"
,
"gpt-3.5-turbo-0125"
,
"gpt-3.5-turbo-16k"
,
"gpt-3.5-turbo-16k-0613"
,
"gpt-3.5-turbo-16k"
,
"gpt-3.5-turbo-16k-0613"
,
"gpt-3.5-turbo-instruct"
,
"gpt-3.5-turbo-instruct"
,
"gpt-4"
,
"gpt-4-0
314"
,
"gpt-4-0
613"
,
"gpt-4-1106-preview"
,
"gpt-4-0125-preview"
,
"gpt-4"
,
"gpt-4-0613"
,
"gpt-4-1106-preview"
,
"gpt-4-0125-preview"
,
"gpt-4-32k"
,
"gpt-4-32k-0
314"
,
"gpt-4-32k-0
613"
,
"gpt-4-32k"
,
"gpt-4-32k-0613"
,
"gpt-4-turbo-preview"
,
"gpt-4-turbo"
,
"gpt-4-turbo-2024-04-09"
,
"gpt-4-turbo-preview"
,
"gpt-4-turbo"
,
"gpt-4-turbo-2024-04-09"
,
"gpt-4-vision-preview"
,
"gpt-4-vision-preview"
,
"gpt-4o"
,
"gpt-4o-2024-05-13"
,
"gpt-4o"
,
"gpt-4o-2024-05-13"
,
"text-embedding-ada-002"
,
"text-embedding-3-small"
,
"text-embedding-3-large"
,
"text-embedding-ada-002"
,
"text-embedding-3-small"
,
"text-embedding-3-large"
,
"text-curie-001"
,
"text-babbage-001"
,
"text-ada-001"
,
"text-davinci-002"
,
"text-davinci-003"
,
"text-curie-001"
,
"text-babbage-001"
,
"text-ada-001"
,
"text-moderation-latest"
,
"text-moderation-stable"
,
"text-moderation-latest"
,
"text-moderation-stable"
,
"text-davinci-edit-001"
,
"text-davinci-edit-001"
,
"davinci-002"
,
"babbage-002"
,
"davinci-002"
,
"babbage-002"
,
"dall-e-
2"
,
"dall-e-
3"
,
"dall-e-3"
,
"whisper-1"
,
"whisper-1"
,
"tts-1"
,
"tts-1-1106"
,
"tts-1-hd"
,
"tts-1-hd-1106"
,
"tts-1"
,
"tts-1-1106"
,
"tts-1-hd"
,
"tts-1-hd-1106"
,
}
}
...
...
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