mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-28 07:31:21 +00:00
Persist the free Fast group policy
This commit is contained in:
1 parent
e7caedc22a
commit
fb409787c6
2 files changed
+3
No files matched your search
@@ -104,6 +104,7 @@ func createGroupRecord(ctx context.Context, client *dbent.Client, groupIn *servi
|
|||||||
SetAllowMessagesDispatch(groupIn.AllowMessagesDispatch).
|
SetAllowMessagesDispatch(groupIn.AllowMessagesDispatch).
|
||||||
SetAllowLive(groupIn.AllowLive).
|
SetAllowLive(groupIn.AllowLive).
|
||||||
SetForceOpenaiFast(groupIn.ForceOpenAIFast).
|
SetForceOpenaiFast(groupIn.ForceOpenAIFast).
|
||||||
|
SetFreeOpenaiFast(groupIn.FreeOpenAIFast).
|
||||||
SetRequireOauthOnly(groupIn.RequireOAuthOnly).
|
SetRequireOauthOnly(groupIn.RequireOAuthOnly).
|
||||||
SetRequirePrivacySet(groupIn.RequirePrivacySet).
|
SetRequirePrivacySet(groupIn.RequirePrivacySet).
|
||||||
SetDefaultMappedModel(groupIn.DefaultMappedModel).
|
SetDefaultMappedModel(groupIn.DefaultMappedModel).
|
||||||
@@ -281,6 +282,7 @@ func (r *groupRepository) Update(ctx context.Context, groupIn *service.Group) er
|
|||||||
SetAllowMessagesDispatch(groupIn.AllowMessagesDispatch).
|
SetAllowMessagesDispatch(groupIn.AllowMessagesDispatch).
|
||||||
SetAllowLive(groupIn.AllowLive).
|
SetAllowLive(groupIn.AllowLive).
|
||||||
SetForceOpenaiFast(groupIn.ForceOpenAIFast).
|
SetForceOpenaiFast(groupIn.ForceOpenAIFast).
|
||||||
|
SetFreeOpenaiFast(groupIn.FreeOpenAIFast).
|
||||||
SetRequireOauthOnly(groupIn.RequireOAuthOnly).
|
SetRequireOauthOnly(groupIn.RequireOAuthOnly).
|
||||||
SetRequirePrivacySet(groupIn.RequirePrivacySet).
|
SetRequirePrivacySet(groupIn.RequirePrivacySet).
|
||||||
SetDefaultMappedModel(groupIn.DefaultMappedModel).
|
SetDefaultMappedModel(groupIn.DefaultMappedModel).
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ type Group struct {
|
|||||||
AllowMessagesDispatch bool
|
AllowMessagesDispatch bool
|
||||||
AllowLive bool
|
AllowLive bool
|
||||||
ForceOpenAIFast bool // 强制 OpenAI 网关请求使用 service_tier=priority
|
ForceOpenAIFast bool // 强制 OpenAI 网关请求使用 service_tier=priority
|
||||||
|
FreeOpenAIFast bool // OpenAI Fast 请求按 Standard 价格向用户计费
|
||||||
RequireOAuthOnly bool // 仅允许非 apikey 类型账号关联(OpenAI/Antigravity/Anthropic/Gemini)
|
RequireOAuthOnly bool // 仅允许非 apikey 类型账号关联(OpenAI/Antigravity/Anthropic/Gemini)
|
||||||
RequirePrivacySet bool // 调度时仅允许 privacy 已成功设置的账号(OpenAI/Antigravity/Anthropic/Gemini)
|
RequirePrivacySet bool // 调度时仅允许 privacy 已成功设置的账号(OpenAI/Antigravity/Anthropic/Gemini)
|
||||||
DefaultMappedModel string
|
DefaultMappedModel string
|
||||||
|
|||||||
Reference in new issue
Block a user