Skip to content

Latest commit

 

History

History
88 lines (53 loc) · 2.66 KB

README.md

File metadata and controls

88 lines (53 loc) · 2.66 KB

GitHub Models and Semantic Kernel Sample

License: MIT Twitter: elbruno GitHub: elbruno

This project is designed to be opened in GitHub Codespaces as an easy way for anyone to try out the GitHub Models entirely in the browser.

  1. Create a new Codespace using the Code button at the top of the repository. create Codespace

  2. Generate a GitHub Personal Access Token (PAT)

  3. Open terminal, and navigate to the the src folder.

    cd src
  4. Save the PAT as a User Secret with the following command:

    dotnet user-secrets init
    dotnet user-secrets set "GH_PAT" "< PAT >"
  5. Select a model from the GitHub Model Marketplace. For the current demo, we will use Phi-3.5-mini instruct (128k)

  6. Edit the file program.cs. Complete the following information:

    • ModelId
    • Uri Endpoint

    Your code should look like this:

    sample code

  7. In the terminal, run the project with the command:

    dotnet run

    The app should run a chat using the selected mode in the terminal. sample running project

Video Tutorials

If you want to learn more about how to use this repo, check the following videos:

GitHub Models and Semantic Kernel

GitHub Models and Semantic Kernel

References

Author

👤 Bruno Capuano

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2024 Bruno Capuano.

This project is MIT licensed.