Skip to content

Commit b4aaa3a

Browse files
committed
Update readme
1 parent 4222f8e commit b4aaa3a

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ python -m pip install -r requirements.txt
3030

3131
## Configuring the OpenAI environment variables
3232

33-
These scripts can be run against an Azure OpenAI account, an OpenAI.com account, or a local Ollama server,
33+
These scripts can be run with Azure OpenAI account, OpenAI.com, local Ollama server, or GitHub models,
3434
depending on the environment variables you set.
3535

3636
1. Copy the `.env.sample` file to a new file called `.env`:
@@ -65,3 +65,17 @@ depending on the environment variables you set.
6565
```
6666
6767
If you're running inside the Dev Container, replace `localhost` with `host.docker.internal`.
68+
69+
5. For GitHub models, customize the `.env` file with your GitHub model name.
70+
71+
```bash
72+
API_HOST=github
73+
GITHUB_MODEL=gpt-4o
74+
```
75+
76+
You'll need a `GITHUB_TOKEN` environment variable that stores a GitHub personal access token.
77+
If you're running this inside a GitHub Codespace, the token will be automatically available.
78+
If not, generate a new [personal access token](https://github.com/settings/tokens) and run this command to set the `GITHUB_TOKEN` environment variable:
79+
80+
```shell
81+
export GITHUB_TOKEN="<your-github-token-goes-here>"

0 commit comments

Comments
 (0)