diff --git a/AiServer/Configure.AppHost.cs b/AiServer/Configure.AppHost.cs index 5f86fdb..f0d0944 100644 --- a/AiServer/Configure.AppHost.cs +++ b/AiServer/Configure.AppHost.cs @@ -94,6 +94,11 @@ public void Configure(IWebHostBuilder builder) => builder maxFileBytes: 10 * 1024 * 1024, resolvePath:ctx => "secure".CombineWith((ctx.Request.GetApiKey() as ApiKeysFeature.ApiKey)?.Id ?? 0, ctx.FileName)) )); + + services.ConfigurePlugin(feature => + { + feature.MetadataTypesConfig.InitializeCollections = false; + }); });