-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Access Denied" with latest Phi Silica capabilities with 1.7 experimental 3 #5115
Comments
Hey Steven, Thanks for trying this out! There are two issues here:
|
Thank you both! If I don't include the I changed back to use await like in the docs. My debug button looks like this @eduhrami does this mean its unpackaged? and if so how do I package it? |
Hey @StevenBucher98 , sorry the late reply. The easiest way to get a packaged app would be to create your project using the "Blank App, Packaged Win UI" template from the Create New Project Wizard. |
Thanks for reporting this @StevenBucher98 As for a workaround, you can explicitly mentiond I am using the following snippet . You can use something similar or the await instructions from the docs. if (!LanguageModel.IsAvailable())
{
var op = LanguageModel.MakeAvailableAsync().GetAwaiter().GetResult();
}
using LanguageModel languageModel = LanguageModel.CreateAsync().GetResults();
string prompt = "Provide the molecular formula for glucose.";
var result = languageModel.GenerateResponseAsync(prompt).GetAwaiter().GetResult();
Console.WriteLine(result.Response);
` |
@pratikone This is great to know! Thank you! The documentation says "Unpackaged apps are currently unsupported", so will it suddenly stops working for an unpackaged app (regular console app) at some point? |
That is definitely a mistake. Self-contained are currently unsupported. We will get the docs fixed. Thanks for reporting. Edit : It is fixed in docs https://learn.microsoft.com/en-us/windows/ai/apis/ |
@pratikone That's great to know. Thank you very much! |
Describe the bug
I have been having some trouble getting the new phi silica SDK capabilities working on the experiment 3 release. For one I had to add
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
to my csproj file in order for the program to fine the registered files so I suggest adding details on adding this in the instructions in the docs.My main issue now is with some weird "Access Denied" bug when I try to run the simple console app example.
Steps to reproduce the bug
In VSCode try the following code given all necessary pre-reqs in the doc and try running it.
Expected behavior
The molecular formula for glucose is C6H12O6.
Screenshots
NuGet package version
Windows App SDK 1.7 Experimental 3: 1.7.250127003-experimental3
Packaging type
Unpackaged
Windows version
Windows 11 version 24H2 (22621, October 2024 Update)
IDE
Visual Studio 2022
Additional context
I am not sure if this is packaged or unpackaged
The text was updated successfully, but these errors were encountered: