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
727b6729
authored
May 14, 2024
by
Calcium-Ion
Committed by
GitHub
May 14, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #247 from MapleEve/gpt4o
Support Gpt4o
parents
f76c39c9
81ff5ead
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/openai/constant.go
+1
-0
No files found.
common/model-ratio.go
View file @
727b6729
...
@@ -30,6 +30,7 @@ var DefaultModelRatio = map[string]float64{
...
@@ -30,6 +30,7 @@ var DefaultModelRatio = map[string]float64{
"gpt-4o"
:
2.5
,
// $0.01 / 1K tokens
"gpt-4o"
:
2.5
,
// $0.01 / 1K tokens
"gpt-4o-2024-05-13"
:
2.5
,
// $0.01 / 1K tokens
"gpt-4o-2024-05-13"
:
2.5
,
// $0.01 / 1K tokens
"gpt-4-turbo"
:
5
,
// $0.01 / 1K tokens
"gpt-4-turbo"
:
5
,
// $0.01 / 1K tokens
"gpt-4o"
:
0.25
,
// $0.0015 / 1K tokens
"gpt-4-turbo-2024-04-09"
:
5
,
// $0.01 / 1K tokens
"gpt-4-turbo-2024-04-09"
:
5
,
// $0.01 / 1K tokens
"gpt-3.5-turbo"
:
0.25
,
// $0.0015 / 1K tokens
"gpt-3.5-turbo"
:
0.25
,
// $0.0015 / 1K tokens
//"gpt-3.5-turbo-0301": 0.75, //deprecated
//"gpt-3.5-turbo-0301": 0.75, //deprecated
...
...
relay/channel/openai/constant.go
View file @
727b6729
package
openai
package
openai
var
ModelList
=
[]
string
{
var
ModelList
=
[]
string
{
"gpt-4o"
,
"gpt-3.5-turbo"
,
"gpt-3.5-turbo-0301"
,
"gpt-3.5-turbo-0613"
,
"gpt-3.5-turbo-1106"
,
"gpt-3.5-turbo-0125"
,
"gpt-3.5-turbo"
,
"gpt-3.5-turbo-0301"
,
"gpt-3.5-turbo-0613"
,
"gpt-3.5-turbo-1106"
,
"gpt-3.5-turbo-0125"
,
"gpt-3.5-turbo-16k"
,
"gpt-3.5-turbo-16k-0613"
,
"gpt-3.5-turbo-16k"
,
"gpt-3.5-turbo-16k-0613"
,
"gpt-3.5-turbo-instruct"
,
"gpt-3.5-turbo-instruct"
,
...
...
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