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
f349b332
authored
Jan 03, 2024
by
Calcium-Ion
Committed by
GitHub
Jan 03, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #42 from Tailen/main
feat: 添加 davinci-002 和 babbage-002 模型
parents
abe948c5
d36a9303
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
common/model-ratio.go
+2
-0
controller/model.go
+18
-0
No files found.
common/model-ratio.go
View file @
f349b332
...
...
@@ -32,6 +32,8 @@ var ModelRatio = map[string]float64{
"gpt-3.5-turbo-16k-0613"
:
1.5
,
"gpt-3.5-turbo-instruct"
:
0.75
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo-1106"
:
0.5
,
// $0.001 / 1K tokens
"babbage-002"
:
0.2
,
// $0.0004 / 1K tokens
"davinci-002"
:
1
,
// $0.002 / 1K tokens
"text-ada-001"
:
0.2
,
"text-babbage-001"
:
0.25
,
"text-curie-001"
:
1
,
...
...
controller/model.go
View file @
f349b332
...
...
@@ -361,6 +361,24 @@ func init() {
Parent
:
nil
,
},
{
Id
:
"babbage-002"
,
Object
:
"model"
,
Created
:
1677649963
,
OwnedBy
:
"openai"
,
Permission
:
permission
,
Root
:
"babbage-002"
,
Parent
:
nil
,
},
{
Id
:
"davinci-002"
,
Object
:
"model"
,
Created
:
1677649963
,
OwnedBy
:
"openai"
,
Permission
:
permission
,
Root
:
"davinci-002"
,
Parent
:
nil
,
},
{
Id
:
"claude-instant-1"
,
Object
:
"model"
,
Created
:
1677649963
,
...
...
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