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
8c0219eb
authored
Mar 01, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Correct option map key for PreConsumedQuota
parent
56a06df4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
model/option.go
+2
-2
No files found.
model/option.go
View file @
8c0219eb
...
...
@@ -87,7 +87,7 @@ func InitOptionMap() {
common
.
OptionMap
[
"QuotaForInviter"
]
=
strconv
.
Itoa
(
common
.
QuotaForInviter
)
common
.
OptionMap
[
"QuotaForInvitee"
]
=
strconv
.
Itoa
(
common
.
QuotaForInvitee
)
common
.
OptionMap
[
"QuotaRemindThreshold"
]
=
strconv
.
Itoa
(
common
.
QuotaRemindThreshold
)
common
.
OptionMap
[
"
Should
PreConsumedQuota"
]
=
strconv
.
Itoa
(
common
.
PreConsumedQuota
)
common
.
OptionMap
[
"PreConsumedQuota"
]
=
strconv
.
Itoa
(
common
.
PreConsumedQuota
)
common
.
OptionMap
[
"ModelRequestRateLimitCount"
]
=
strconv
.
Itoa
(
setting
.
ModelRequestRateLimitCount
)
common
.
OptionMap
[
"ModelRequestRateLimitDurationMinutes"
]
=
strconv
.
Itoa
(
setting
.
ModelRequestRateLimitDurationMinutes
)
common
.
OptionMap
[
"ModelRequestRateLimitSuccessCount"
]
=
strconv
.
Itoa
(
setting
.
ModelRequestRateLimitSuccessCount
)
...
...
@@ -328,7 +328,7 @@ func updateOptionMap(key string, value string) (err error) {
common
.
QuotaForInvitee
,
_
=
strconv
.
Atoi
(
value
)
case
"QuotaRemindThreshold"
:
common
.
QuotaRemindThreshold
,
_
=
strconv
.
Atoi
(
value
)
case
"
Should
PreConsumedQuota"
:
case
"PreConsumedQuota"
:
common
.
PreConsumedQuota
,
_
=
strconv
.
Atoi
(
value
)
case
"ModelRequestRateLimitCount"
:
setting
.
ModelRequestRateLimitCount
,
_
=
strconv
.
Atoi
(
value
)
...
...
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