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
cb2973d3
authored
Sep 02, 2024
by
Calcium-Ion
Committed by
GitHub
Sep 02, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #451 from Nana7mi1/main
feat: support more zhipu models
parents
e1a9c3a4
30b14e7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
common/model-ratio.go
+7
-0
relay/channel/zhipu_4v/constants.go
+1
-1
No files found.
common/model-ratio.go
View file @
cb2973d3
...
@@ -119,6 +119,13 @@ var defaultModelRatio = map[string]float64{
...
@@ -119,6 +119,13 @@ var defaultModelRatio = map[string]float64{
"glm-4v"
:
0.05
*
RMB
,
// ¥0.05 / 1k tokens
"glm-4v"
:
0.05
*
RMB
,
// ¥0.05 / 1k tokens
"glm-4-alltools"
:
0.1
*
RMB
,
// ¥0.1 / 1k tokens
"glm-4-alltools"
:
0.1
*
RMB
,
// ¥0.1 / 1k tokens
"glm-3-turbo"
:
0.3572
,
"glm-3-turbo"
:
0.3572
,
"glm-4-plus"
:
0.05
*
RMB
,
"glm-4-0520"
:
0.1
*
RMB
,
"glm-4-air"
:
0.001
*
RMB
,
"glm-4-airx"
:
0.01
*
RMB
,
"glm-4-long"
:
0.001
*
RMB
,
"glm-4-flash"
:
0
,
"glm-4v-plus"
:
0.01
*
RMB
,
"qwen-turbo"
:
0.8572
,
// ¥0.012 / 1k tokens
"qwen-turbo"
:
0.8572
,
// ¥0.012 / 1k tokens
"qwen-plus"
:
10
,
// ¥0.14 / 1k tokens
"qwen-plus"
:
10
,
// ¥0.14 / 1k tokens
"text-embedding-v1"
:
0.05
,
// ¥0.0007 / 1k tokens
"text-embedding-v1"
:
0.05
,
// ¥0.0007 / 1k tokens
...
...
relay/channel/zhipu_4v/constants.go
View file @
cb2973d3
package
zhipu_4v
package
zhipu_4v
var
ModelList
=
[]
string
{
var
ModelList
=
[]
string
{
"glm-4"
,
"glm-4v"
,
"glm-3-turbo"
,
"glm-4-alltools"
,
"glm-4"
,
"glm-4v"
,
"glm-3-turbo"
,
"glm-4-alltools"
,
"glm-4-plus"
,
"glm-4-0520"
,
"glm-4-air"
,
"glm-4-airx"
,
"glm-4-long"
,
"glm-4-flash"
,
"glm-4v-plus"
,
}
}
var
ChannelName
=
"zhipu_4v"
var
ChannelName
=
"zhipu_4v"
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