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
c073debc
authored
Jan 03, 2025
by
Calcium-Ion
Committed by
GitHub
Jan 03, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #689 from iszcz/new512
parents
d953b984
4fc2e495
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 @
c073debc
...
@@ -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