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
7bbb7f81
authored
Dec 31, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(model): add audio ratios for new TTS models and adjust default values
parent
75a6a0ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
setting/ratio_setting/model_ratio.go
+6
-2
No files found.
setting/ratio_setting/model_ratio.go
View file @
7bbb7f81
...
...
@@ -311,6 +311,10 @@ var defaultAudioCompletionRatio = map[string]float64{
"gpt-4o-realtime"
:
2
,
"gpt-4o-mini-realtime"
:
2
,
"gpt-4o-mini-tts"
:
1
,
"tts-1"
:
0
,
"tts-1-hd"
:
0
,
"tts-1-1106"
:
0
,
"tts-1-hd-1106"
:
0
,
}
var
(
...
...
@@ -656,7 +660,7 @@ func GetAudioRatio(name string) float64 {
if
ratio
,
ok
:=
audioRatioMap
[
name
];
ok
{
return
ratio
}
return
20
return
1
}
func
GetAudioCompletionRatio
(
name
string
)
float64
{
...
...
@@ -667,7 +671,7 @@ func GetAudioCompletionRatio(name string) float64 {
return
ratio
}
return
2
return
1
}
func
ModelRatio2JSONString
()
string
{
...
...
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