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
4fc2e495
authored
Jan 03, 2025
by
iszcz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update model-ratio.go
parent
d953b984
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
common/model-ratio.go
+17
-6
No files found.
common/model-ratio.go
View file @
4fc2e495
...
@@ -431,12 +431,23 @@ func GetCompletionRatio(name string) float64 {
...
@@ -431,12 +431,23 @@ func GetCompletionRatio(name string) float64 {
}
}
func
GetAudioRatio
(
name
string
)
float64
{
func
GetAudioRatio
(
name
string
)
float64
{
if
strings
.
HasPrefix
(
name
,
"gpt-4o-realtime"
)
{
if
strings
.
Contains
(
name
,
"-realtime"
)
{
return
20
if
strings
.
HasSuffix
(
name
,
"gpt-4o-realtime-preview-2024-12-17"
)
{
}
else
if
strings
.
HasPrefix
(
name
,
"gpt-4o-audio"
)
{
return
8
return
40
}
else
if
strings
.
Contains
(
name
,
"mini"
)
{
}
else
if
strings
.
HasPrefix
(
name
,
"gpt-4o-mini-realtime"
)
{
return
10
/
0.6
return
10
/
0.6
}
else
{
return
20
}
}
if
strings
.
Contains
(
name
,
"-audio"
)
{
if
strings
.
HasSuffix
(
name
,
"gpt-4o-audio-preview-2024-12-17"
)
{
return
16
}
else
if
strings
.
Contains
(
name
,
"mini"
)
{
return
10
/
0.15
}
else
{
return
40
}
}
}
return
20
return
20
}
}
...
...
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