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
34297bd3
authored
Dec 12, 2023
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加gpt-4-1106-vision-preview模型
parent
cc722da3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
common/model-ratio.go
+1
-0
controller/model.go
+9
-0
No files found.
common/model-ratio.go
View file @
34297bd3
...
@@ -23,6 +23,7 @@ var ModelRatio = map[string]float64{
...
@@ -23,6 +23,7 @@ var ModelRatio = map[string]float64{
"gpt-4-32k-0613"
:
30
,
"gpt-4-32k-0613"
:
30
,
"gpt-4-1106-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-1106-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-vision-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-vision-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-4-1106-vision-preview"
:
5
,
// $0.01 / 1K tokens
"gpt-3.5-turbo"
:
0.75
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo"
:
0.75
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo-0301"
:
0.75
,
"gpt-3.5-turbo-0301"
:
0.75
,
"gpt-3.5-turbo-0613"
:
0.75
,
"gpt-3.5-turbo-0613"
:
0.75
,
...
...
controller/model.go
View file @
34297bd3
...
@@ -262,6 +262,15 @@ func init() {
...
@@ -262,6 +262,15 @@ func init() {
Parent
:
nil
,
Parent
:
nil
,
},
},
{
{
Id
:
"gpt-4-1106-vision-preview"
,
Object
:
"model"
,
Created
:
1699593571
,
OwnedBy
:
"openai"
,
Permission
:
permission
,
Root
:
"gpt-4-1106-vision-preview"
,
Parent
:
nil
,
},
{
Id
:
"text-embedding-ada-002"
,
Id
:
"text-embedding-ada-002"
,
Object
:
"model"
,
Object
:
"model"
,
Created
:
1677649963
,
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