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
15a3b446
authored
Feb 25, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add support for Claude 3.7 Sonnet model
parent
8f3c7280
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
common/model-ratio.go
+1
-0
relay/channel/claude/constants.go
+1
-0
No files found.
common/model-ratio.go
View file @
15a3b446
...
@@ -108,6 +108,7 @@ var defaultModelRatio = map[string]float64{
...
@@ -108,6 +108,7 @@ var defaultModelRatio = map[string]float64{
"claude-3-sonnet-20240229"
:
1.5
,
// $3 / 1M tokens
"claude-3-sonnet-20240229"
:
1.5
,
// $3 / 1M tokens
"claude-3-5-sonnet-20240620"
:
1.5
,
"claude-3-5-sonnet-20240620"
:
1.5
,
"claude-3-5-sonnet-20241022"
:
1.5
,
"claude-3-5-sonnet-20241022"
:
1.5
,
"claude-3-7-sonnet-20250219"
:
1.5
,
"claude-3-opus-20240229"
:
7.5
,
// $15 / 1M tokens
"claude-3-opus-20240229"
:
7.5
,
// $15 / 1M tokens
"ERNIE-4.0-8K"
:
0.120
*
RMB
,
"ERNIE-4.0-8K"
:
0.120
*
RMB
,
"ERNIE-3.5-8K"
:
0.012
*
RMB
,
"ERNIE-3.5-8K"
:
0.012
*
RMB
,
...
...
relay/channel/claude/constants.go
View file @
15a3b446
...
@@ -11,6 +11,7 @@ var ModelList = []string{
...
@@ -11,6 +11,7 @@ var ModelList = []string{
"claude-3-5-haiku-20241022"
,
"claude-3-5-haiku-20241022"
,
"claude-3-5-sonnet-20240620"
,
"claude-3-5-sonnet-20240620"
,
"claude-3-5-sonnet-20241022"
,
"claude-3-5-sonnet-20241022"
,
"claude-3-7-sonnet-20250219"
,
}
}
var
ChannelName
=
"claude"
var
ChannelName
=
"claude"
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