Skip to content

Commit

Permalink
修复 AOT 下 AI 功能不能使用的问题 (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy authored Jan 29, 2025
1 parent be46c55 commit 6470463
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Desktop/BiliCopilot.UI/GlobalDependencies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ public static void Initialize()
.AddTransient<UserMomentDetailViewModel>()
.AddTransient<DownloadViewModel>()
.Build();

AgentStatics.GlobalKernel = Kernel;
}

public static IKernelBuilder AddDispatcherQueue(this IKernelBuilder kernelBuilder)
Expand Down

1 comment on commit 6470463

@nekoteai
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI修了可以发一个release吗?😉thanks

Please sign in to comment.