This project is an AI chat application that demonstrates how to chat with custom data using an AI language model. Please note that this template is currently in an early preview stage. If you have feedback, please take a brief survey.
Note
Before running this project you need to configure the API keys or endpoints for the providers you have chosen. See below for details specific to your choices.
To use models hosted by GitHub Models, you will need to create a GitHub personal access token. The token should not have any scopes or permissions. See Managing your personal access tokens.
Configure your token for this project using .NET User Secrets:
- In Visual Studio, right-click on your project in the Solution Explorer and select "Manage User Secrets".
- This opens a
secrets.json
file where you can store your API keys without them being tracked in source control. Add the following key and value:
{
"GitHubModels:Token": "YOUR-TOKEN"
}
Learn more about prototyping with AI models using GitHub Models.
- JSON Placeholder API
- Exchange Rate API