This project demonstrates how to use the Azure AI Inference service to interact with a language model.
-
Clone the repository:
git clone https://github.com/Kawaeee/github-model-sample.git cd github-model-sample -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.envfile based on the.env.examplefile and add your GitHub token:cp .env.example .env # Edit .env to add your GITHUB_TOKEN