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
451d23a1
authored
Feb 10, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/main'
parents
bb1358ca
220946cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
common/model-ratio.go
+6
-7
relay/channel/siliconflow/constant.go
+1
-1
No files found.
common/model-ratio.go
View file @
451d23a1
...
@@ -191,8 +191,9 @@ var defaultModelRatio = map[string]float64{
...
@@ -191,8 +191,9 @@ var defaultModelRatio = map[string]float64{
"command-r-plus"
:
1.5
,
"command-r-plus"
:
1.5
,
"command-r-08-2024"
:
0.075
,
"command-r-08-2024"
:
0.075
,
"command-r-plus-08-2024"
:
1.25
,
"command-r-plus-08-2024"
:
1.25
,
"deepseek-chat"
:
0.07
,
"deepseek-chat"
:
0.27
/
2
,
"deepseek-coder"
:
0.07
,
"deepseek-coder"
:
0.27
/
2
,
"deepseek-reasoner"
:
0.55
/
2
,
// 0.55 / 1k tokens
// Perplexity online 模型对搜索额外收费,有需要应自行调整,此处不计入搜索费用
// Perplexity online 模型对搜索额外收费,有需要应自行调整,此处不计入搜索费用
"llama-3-sonar-small-32k-chat"
:
0.2
/
1000
*
USD
,
"llama-3-sonar-small-32k-chat"
:
0.2
/
1000
*
USD
,
"llama-3-sonar-small-32k-online"
:
0.2
/
1000
*
USD
,
"llama-3-sonar-small-32k-online"
:
0.2
/
1000
*
USD
,
...
@@ -418,11 +419,9 @@ func GetCompletionRatio(name string) float64 {
...
@@ -418,11 +419,9 @@ func GetCompletionRatio(name string) float64 {
return
4
return
4
}
}
}
}
if
strings
.
HasPrefix
(
lowercaseName
,
"deepseek"
)
{
// hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐
if
strings
.
HasSuffix
(
lowercaseName
,
"reasoner"
)
||
strings
.
HasSuffix
(
lowercaseName
,
"r1"
)
{
if
lowercaseName
==
"deepseek-chat"
||
lowercaseName
==
"deepseek-reasoner"
{
return
4
return
4
}
return
2
}
}
if
strings
.
HasPrefix
(
name
,
"ERNIE-Speed-"
)
{
if
strings
.
HasPrefix
(
name
,
"ERNIE-Speed-"
)
{
return
2
return
2
...
...
relay/channel/siliconflow/constant.go
View file @
451d23a1
...
@@ -40,7 +40,7 @@ var ModelList = []string{
...
@@ -40,7 +40,7 @@ var ModelList = []string{
"Pro/meta-llama/Meta-Llama-3-8B-Instruct"
,
"Pro/meta-llama/Meta-Llama-3-8B-Instruct"
,
"Pro/mistralai/Mistral-7B-Instruct-v0.2"
,
"Pro/mistralai/Mistral-7B-Instruct-v0.2"
,
"black-forest-labs/FLUX.1-schnell"
,
"black-forest-labs/FLUX.1-schnell"
,
"
iic
/SenseVoiceSmall"
,
"
FunAudioLLM
/SenseVoiceSmall"
,
"netease-youdao/bce-embedding-base_v1"
,
"netease-youdao/bce-embedding-base_v1"
,
"BAAI/bge-m3"
,
"BAAI/bge-m3"
,
"internlm/internlm2_5-20b-chat"
,
"internlm/internlm2_5-20b-chat"
,
...
...
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