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.
-
Create a new Codespace using the
Code
button at the top of the repository. -
Generate a GitHub Personal Access Token (PAT)
-
Open terminal, and navigate to the the src folder.
cd src
-
Save the PAT as a User Secret with the following command:
dotnet user-secrets init dotnet user-secrets set "GH_PAT" "< PAT >"
-
Select a model from the GitHub Model Marketplace. For the current demo, we will use Phi-3.5-mini instruct (128k)
-
Edit the file program.cs. Complete the following information:
- ModelId
- Uri Endpoint
Your code should look like this:
-
In the terminal, run the project with the command:
dotnet run
The app should run a chat using the selected mode in the terminal.
If you want to learn more about how to use this repo, check the following videos:
👤 Bruno Capuano
- Website: https://elbruno.com
- Twitter: @elbruno
- Github: @elbruno
- LinkedIn: @elbruno
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2024 Bruno Capuano.
This project is MIT licensed.