Skip to content

Fix: Missing code elements (await, closing paren, variable declaration)#270

Open
qiutongMS wants to merge 1 commit into
MicrosoftDocs:docsfrom
qiutongMS:fix/windows-ai/missing-code-elements
Open

Fix: Missing code elements (await, closing paren, variable declaration)#270
qiutongMS wants to merge 1 commit into
MicrosoftDocs:docsfrom
qiutongMS:fix/windows-ai/missing-code-elements

Conversation

@qiutongMS
Copy link
Copy Markdown

Summary

Fixes missing code syntax elements that prevent compilation in 3 documentation pages.

Changes

  1. docs/apis/phi-silica-lora.md - Added missing await on LanguageModel.CreateAsync(). Without it, session is an IAsyncOperation<LanguageModel> instead of a LanguageModel.

  2. docs/new-windows-ml/initialize-execution-providers.md - Fixed missing closing parenthesis on TryEnqueue() call. Changed }; to });.

  3. docs/apis/phi-silica-structured-output.md - Added missing var experimentalModel = new LanguageModelExperimental(languageModel); declaration. The C# code used experimentalModel without declaring it (the C++ tab had the equivalent line).

Validation

  • All changes are mechanical syntax fixes with obvious correct forms
  • No links were modified

…e declaration)

- Add missing await on LanguageModel.CreateAsync() in phi-silica-lora.md
- Fix missing closing parenthesis on TryEnqueue call in initialize-execution-providers.md
- Add missing experimentalModel declaration in phi-silica-structured-output.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant