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
06d1bd40
authored
Dec 13, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(model_ratio): add default ratios for gpt-4o-mini-tts
parent
284ce42c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
setting/ratio_setting/model_ratio.go
+6
-0
No files found.
setting/ratio_setting/model_ratio.go
View file @
06d1bd40
...
@@ -297,6 +297,7 @@ var defaultModelPrice = map[string]float64{
...
@@ -297,6 +297,7 @@ var defaultModelPrice = map[string]float64{
"mj_upload"
:
0.05
,
"mj_upload"
:
0.05
,
"sora-2"
:
0.3
,
"sora-2"
:
0.3
,
"sora-2-pro"
:
0.5
,
"sora-2-pro"
:
0.5
,
"gpt-4o-mini-tts"
:
0.3
,
}
}
var
defaultAudioRatio
=
map
[
string
]
float64
{
var
defaultAudioRatio
=
map
[
string
]
float64
{
...
@@ -304,11 +305,13 @@ var defaultAudioRatio = map[string]float64{
...
@@ -304,11 +305,13 @@ var defaultAudioRatio = map[string]float64{
"gpt-4o-mini-audio-preview"
:
66.67
,
"gpt-4o-mini-audio-preview"
:
66.67
,
"gpt-4o-realtime-preview"
:
8
,
"gpt-4o-realtime-preview"
:
8
,
"gpt-4o-mini-realtime-preview"
:
16.67
,
"gpt-4o-mini-realtime-preview"
:
16.67
,
"gpt-4o-mini-tts"
:
25
,
}
}
var
defaultAudioCompletionRatio
=
map
[
string
]
float64
{
var
defaultAudioCompletionRatio
=
map
[
string
]
float64
{
"gpt-4o-realtime"
:
2
,
"gpt-4o-realtime"
:
2
,
"gpt-4o-mini-realtime"
:
2
,
"gpt-4o-mini-realtime"
:
2
,
"gpt-4o-mini-tts"
:
1
,
}
}
var
(
var
(
...
@@ -536,6 +539,9 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
...
@@ -536,6 +539,9 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
if
name
==
"gpt-4o-2024-05-13"
{
if
name
==
"gpt-4o-2024-05-13"
{
return
3
,
true
return
3
,
true
}
}
if
strings
.
HasPrefix
(
name
,
"gpt-4o-mini-tts"
)
{
return
20
,
false
}
return
4
,
false
return
4
,
false
}
}
// gpt-5 匹配
// gpt-5 匹配
...
...
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