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
b7a947ee
authored
Feb 09, 2025
by
Calcium-Ion
Committed by
GitHub
Feb 09, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #742 from HynoR/chore/ds
chore: 同步deepseek价格
parents
276f9991
efe01aee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
common/model-ratio.go
+6
-7
No files found.
common/model-ratio.go
View file @
b7a947ee
...
...
@@ -191,8 +191,9 @@ var defaultModelRatio = map[string]float64{
"command-r-plus"
:
1.5
,
"command-r-08-2024"
:
0.075
,
"command-r-plus-08-2024"
:
1.25
,
"deepseek-chat"
:
0.07
,
"deepseek-coder"
:
0.07
,
"deepseek-chat"
:
0.27
/
2
,
"deepseek-coder"
:
0.27
/
2
,
"deepseek-reasoner"
:
0.55
/
2
,
// 0.55 / 1k tokens
// Perplexity online 模型对搜索额外收费,有需要应自行调整,此处不计入搜索费用
"llama-3-sonar-small-32k-chat"
:
0.2
/
1000
*
USD
,
"llama-3-sonar-small-32k-online"
:
0.2
/
1000
*
USD
,
...
...
@@ -418,11 +419,9 @@ func GetCompletionRatio(name string) float64 {
return
4
}
}
if
strings
.
HasPrefix
(
lowercaseName
,
"deepseek"
)
{
if
strings
.
HasSuffix
(
lowercaseName
,
"reasoner"
)
||
strings
.
HasSuffix
(
lowercaseName
,
"r1"
)
{
return
4
}
return
2
// hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐
if
lowercaseName
==
"deepseek-chat"
||
lowercaseName
==
"deepseek-reasoner"
{
return
4
}
if
strings
.
HasPrefix
(
name
,
"ERNIE-Speed-"
)
{
return
2
...
...
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