You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+57-93Lines changed: 57 additions & 93 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,79 +160,80 @@ The scripts read environment variables from a `.env` file. Create one based on y
160
160
161
161
#### Option 1: GitHub Models (RECOMMENDED for agents)
162
162
163
-
In GitHub Codespaces, `GITHUB_TOKEN` is already set, so **no .env file is needed** - scripts will work immediately.
163
+
**For agents:** Check if `GITHUB_TOKEN` environment variable is available:
164
+
```bash
165
+
if [ -n"$GITHUB_TOKEN" ];then
166
+
echo"GitHub Models available - GITHUB_TOKEN is set"
167
+
else
168
+
echo"GitHub Models not available - GITHUB_TOKEN not found"
169
+
fi
170
+
```
164
171
165
-
For local development:
166
-
1. Create a GitHub Personal Access Token (no scopes needed): https://github.com/settings/tokens
167
-
2. Set the environment variable:
168
-
```bash
169
-
export GITHUB_TOKEN=your_personal_access_token
170
-
```
171
-
Or create a `.env` file:
172
-
```bash
173
-
cp .env.sample.github .env
174
-
# Edit .env and set GITHUB_TOKEN
175
-
```
172
+
In GitHub Codespaces, `GITHUB_TOKEN` is already set, so **no .env file is needed** - scripts will work immediately.
176
173
177
-
3. Optionally set a different model (default is `gpt-4o`):
178
-
```bash
179
-
export GITHUB_MODEL=openai/gpt-4o-mini
180
-
```
174
+
If `GITHUB_TOKEN` is available, you can optionally set a different model (default is `gpt-4o`):
175
+
```bash
176
+
export GITHUB_MODEL=openai/gpt-4o-mini
177
+
```
181
178
182
179
**Models that support function calling:**`gpt-4o`, `gpt-4o-mini`, `o3-mini`, `AI21-Jamba-1.5-Large`, `AI21-Jamba-1.5-Mini`, `Codestral-2501`, `Cohere-command-r`, `Ministral-3B`, `Mistral-Large-2411`, `Mistral-Nemo`, `Mistral-small`
183
180
184
181
#### Option 2: Azure OpenAI (requires Azure resources and costs)
0 commit comments