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
e1a9c3a4
authored
Sep 02, 2024
by
Calcium-Ion
Committed by
GitHub
Sep 02, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #455 from HynoR/feat/cohere-update
Feat: 更新Cohere新模型和定价
parents
7197ea0d
619da9e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
21 deletions
+30
-21
common/model-ratio.go
+26
-20
relay/channel/cohere/constant.go
+4
-1
No files found.
common/model-ratio.go
View file @
e1a9c3a4
...
...
@@ -137,26 +137,28 @@ var defaultModelRatio = map[string]float64{
"hunyuan"
:
7.143
,
// ¥0.1 / 1k tokens // https://cloud.tencent.com/document/product/1729/97731#e0e6be58-60c8-469f-bdeb-6c264ce3b4d0
// https://platform.lingyiwanwu.com/docs#-计费单元
// 已经按照 7.2 来换算美元价格
"yi-34b-chat-0205"
:
0.18
,
"yi-34b-chat-200k"
:
0.864
,
"yi-vl-plus"
:
0.432
,
"yi-large"
:
20.0
/
1000
*
RMB
,
"yi-medium"
:
2.5
/
1000
*
RMB
,
"yi-vision"
:
6.0
/
1000
*
RMB
,
"yi-medium-200k"
:
12.0
/
1000
*
RMB
,
"yi-spark"
:
1.0
/
1000
*
RMB
,
"yi-large-rag"
:
25.0
/
1000
*
RMB
,
"yi-large-turbo"
:
12.0
/
1000
*
RMB
,
"yi-large-preview"
:
20.0
/
1000
*
RMB
,
"yi-large-rag-preview"
:
25.0
/
1000
*
RMB
,
"command"
:
0.5
,
"command-nightly"
:
0.5
,
"command-light"
:
0.5
,
"command-light-nightly"
:
0.5
,
"command-r"
:
0.25
,
"command-r-plus "
:
1.5
,
"deepseek-chat"
:
0.07
,
"deepseek-coder"
:
0.07
,
"yi-34b-chat-0205"
:
0.18
,
"yi-34b-chat-200k"
:
0.864
,
"yi-vl-plus"
:
0.432
,
"yi-large"
:
20.0
/
1000
*
RMB
,
"yi-medium"
:
2.5
/
1000
*
RMB
,
"yi-vision"
:
6.0
/
1000
*
RMB
,
"yi-medium-200k"
:
12.0
/
1000
*
RMB
,
"yi-spark"
:
1.0
/
1000
*
RMB
,
"yi-large-rag"
:
25.0
/
1000
*
RMB
,
"yi-large-turbo"
:
12.0
/
1000
*
RMB
,
"yi-large-preview"
:
20.0
/
1000
*
RMB
,
"yi-large-rag-preview"
:
25.0
/
1000
*
RMB
,
"command"
:
0.5
,
"command-nightly"
:
0.5
,
"command-light"
:
0.5
,
"command-light-nightly"
:
0.5
,
"command-r"
:
0.25
,
"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
,
// Perplexity online 模型对搜索额外收费,有需要应自行调整,此处不计入搜索费用
"llama-3-sonar-small-32k-chat"
:
0.2
/
1000
*
USD
,
"llama-3-sonar-small-32k-online"
:
0.2
/
1000
*
USD
,
...
...
@@ -365,6 +367,10 @@ func GetCompletionRatio(name string) float64 {
return
3
case
"command-r-plus"
:
return
5
case
"command-r-08-2024"
:
return
4
case
"command-r-plus-08-2024"
:
return
4
default
:
return
2
}
...
...
relay/channel/cohere/constant.go
View file @
e1a9c3a4
package
cohere
var
ModelList
=
[]
string
{
"command-r"
,
"command-r-plus"
,
"command-light"
,
"command-light-nightly"
,
"command"
,
"command-nightly"
,
"command-r"
,
"command-r-plus"
,
"command-r-08-2024"
,
"command-r-plus-08-2024"
,
"c4ai-aya-23-35b"
,
"c4ai-aya-23-8b"
,
"command-light"
,
"command-light-nightly"
,
"command"
,
"command-nightly"
,
"rerank-english-v3.0"
,
"rerank-multilingual-v3.0"
,
"rerank-english-v2.0"
,
"rerank-multilingual-v2.0"
,
}
...
...
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