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
4b08066f
authored
Jun 25, 2024
by
Mageia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Add Anthropic claude-3-5-sonnet-20240620 to model list
parent
a46de6c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
5 deletions
+26
-5
common/model-ratio.go
+6
-5
fly.toml
+19
-0
relay/channel/claude/constants.go
+1
-0
No files found.
common/model-ratio.go
View file @
4b08066f
...
...
@@ -72,11 +72,12 @@ var defaultModelRatio = map[string]float64{
"text-search-ada-doc-001"
:
10
,
"text-moderation-stable"
:
0.1
,
"text-moderation-latest"
:
0.1
,
"claude-instant-1"
:
0.4
,
// $0.8 / 1M tokens
"claude-2.0"
:
4
,
// $8 / 1M tokens
"claude-2.1"
:
4
,
// $8 / 1M tokens
"claude-3-haiku-20240307"
:
0.125
,
// $0.25 / 1M tokens
"claude-3-sonnet-20240229"
:
1.5
,
// $3 / 1M tokens
"claude-instant-1"
:
0.4
,
// $0.8 / 1M tokens
"claude-2.0"
:
4
,
// $8 / 1M tokens
"claude-2.1"
:
4
,
// $8 / 1M tokens
"claude-3-haiku-20240307"
:
0.125
,
// $0.25 / 1M tokens
"claude-3-sonnet-20240229"
:
1.5
,
// $3 / 1M tokens
"claude-3-5-sonnet-20240620"
:
1.5
,
"claude-3-opus-20240229"
:
7.5
,
// $15 / 1M tokens
"ERNIE-Bot"
:
0.8572
,
// ¥0.012 / 1k tokens //renamed to ERNIE-3.5-8K
"ERNIE-Bot-turbo"
:
0.5715
,
// ¥0.008 / 1k tokens //renamed to ERNIE-Lite-8K
...
...
fly.toml
0 → 100644
View file @
4b08066f
app
=
"new-api-proxy"
primary_region
=
"ord"
[http_service]
internal_port
=
3000
force_https
=
true
auto_stop_machines
=
true
auto_start_machines
=
true
min_machines_running
=
1
processes
=
["app"]
[[vm]]
cpu_kind
=
"shared"
cpus
=
1
memory_mb
=
1024
# postgres://newapi:niXl1YOXVBI4ur4@127.0.0.1:5433/newapi
relay/channel/claude/constants.go
View file @
4b08066f
...
...
@@ -8,6 +8,7 @@ var ModelList = []string{
"claude-3-sonnet-20240229"
,
"claude-3-opus-20240229"
,
"claude-3-haiku-20240307"
,
"claude-3-5-sonnet-20240620"
,
}
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