Skip to content

Commit 6470463

Browse files
authored
修复 AOT 下 AI 功能不能使用的问题 (#991)
1 parent be46c55 commit 6470463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Desktop/BiliCopilot.UI/GlobalDependencies.cs

+2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ public static void Initialize()
146146
.AddTransient<UserMomentDetailViewModel>()
147147
.AddTransient<DownloadViewModel>()
148148
.Build();
149+
150+
AgentStatics.GlobalKernel = Kernel;
149151
}
150152

151153
public static IKernelBuilder AddDispatcherQueue(this IKernelBuilder kernelBuilder)

0 commit comments

Comments
 (0)