Skip to content
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

[BUG] Sample code in app should show how the IChatClient was created #252

Closed
nmetulev opened this issue Feb 28, 2025 · 0 comments · Fixed by #256
Closed

[BUG] Sample code in app should show how the IChatClient was created #252

nmetulev opened this issue Feb 28, 2025 · 0 comments · Fixed by #256
Assignees
Labels
🐛bug Something isn't working

Comments

@nmetulev
Copy link
Member

Describe the bug
The code shown in the gallery on GenAI samples does not show how the IChatClient instance was created.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any GenAI sample and click on view code
  2. Notice that we are showing the LoadModelAsync function where the IChatClient is already created

Expected behavior
The LoadModelAsync should be replaced with the OnNavigatedTo method alongside the code to create the IChatClient like we do for exported projects

Screenshots

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
2 participants