Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
578608d3
Commit
578608d3
authored
Mar 20, 2026
by
Remx
Browse files
fix: format gpt-5.4 mini fallback pricing
parent
42d73118
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/billing_service.go
View file @
578608d3
...
@@ -222,10 +222,10 @@ func (s *BillingService) initFallbackPricing() {
...
@@ -222,10 +222,10 @@ func (s *BillingService) initFallbackPricing() {
LongContextOutputMultiplier
:
openAIGPT54LongContextOutputMultiplier
,
LongContextOutputMultiplier
:
openAIGPT54LongContextOutputMultiplier
,
}
}
s
.
fallbackPrices
[
"gpt-5.4-mini"
]
=
&
ModelPricing
{
s
.
fallbackPrices
[
"gpt-5.4-mini"
]
=
&
ModelPricing
{
InputPricePerToken
:
7.5e-7
,
InputPricePerToken
:
7.5e-7
,
OutputPricePerToken
:
4.5e-6
,
OutputPricePerToken
:
4.5e-6
,
CacheReadPricePerToken
:
7.5e-8
,
CacheReadPricePerToken
:
7.5e-8
,
SupportsCacheBreakdown
:
false
,
SupportsCacheBreakdown
:
false
,
}
}
s
.
fallbackPrices
[
"gpt-5.4-nano"
]
=
&
ModelPricing
{
s
.
fallbackPrices
[
"gpt-5.4-nano"
]
=
&
ModelPricing
{
InputPricePerToken
:
2e-7
,
InputPricePerToken
:
2e-7
,
...
...
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