mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-14 03:52:26 +08:00
test(repository): persist model allowlists in group fixtures
This commit is contained in:
@@ -92,6 +92,7 @@ func mustCreateGroup(t *testing.T, client *dbent.Client, g *service.Group) *serv
|
|||||||
SetIsExclusive(g.IsExclusive).
|
SetIsExclusive(g.IsExclusive).
|
||||||
SetForceOpenaiFast(g.ForceOpenAIFast).
|
SetForceOpenaiFast(g.ForceOpenAIFast).
|
||||||
SetFreeOpenaiFast(g.FreeOpenAIFast).
|
SetFreeOpenaiFast(g.FreeOpenAIFast).
|
||||||
|
SetModelAllowlist(service.DomainGroupModelAllowlist(g.ModelAllowlist)).
|
||||||
SetCodexModelsManifestConfig(g.CodexModelsManifestConfig).
|
SetCodexModelsManifestConfig(g.CodexModelsManifestConfig).
|
||||||
SetProfitControlEnabled(g.ProfitControlEnabled).
|
SetProfitControlEnabled(g.ProfitControlEnabled).
|
||||||
SetProfitMinMargin(g.ProfitMinMargin).
|
SetProfitMinMargin(g.ProfitMinMargin).
|
||||||
|
|||||||
Reference in New Issue
Block a user