Using the Course AI Model in VS Code
These steps connect the chat in VS Code to the course’s AI model, so you can get help with your projects without paying for a subscription. The model runs through a course server that acts as a tutor: it explains concepts, the spec and error messages, and helps you debug by asking questions. It won’t write your project code. The course AI policy applies.
Guidelines: I am providing access to an LLM Agent to assist you with Project 2 in this class. This works with a real agent that costs me real money, so you must use it responsibly and only for the purposes of this class. All chat messages passing through the model are recorded. If I detect that you are using the model for illicit purposes or are attempting to bypass the system guard rails, it will be treated as an academic integrity issue.
When using the GW Model, you will have a weekly budget assigned to your account. The model also performs rate limiting to prevent runaway agents using up all your budget. If you face issues with this or want to check your usage, contact the instructor. If this ends up costing dramatically more than I expect, I may have to restrict access.
What you need
- VS Code, updated to the latest version. The menus below change between versions. Get it from code.visualstudio.com.
- Your personal course key, which starts with
sk-. You will find it in your Blackboard gradebook. Treat it like a password: it’s tied to you, and your usage is tracked against it. - A connection to the GW network, either on campus or through the GW VPN. The course server can’t be reached from anywhere else.
1. Open your project in VS Code
Use File → Open Folder and choose the folder you cloned for your project. Open the whole folder rather than a single file, so that VS Code can find the repository’s instructions for AI assistants.
2. Open the chat and add a new model
- Open the Chat view with View → Chat. If VS Code asks you to set up Copilot, sign in with your GitHub account. You don’t need a paid plan.
- Change the model by clicking
Autoat the bottom of the chat view. - Then click the
+to add a new model.

3. Add the course’s model
- Select Add Models, then Custom Endpoint.

-
Fill in the prompts:
Prompt Enter Group name GWU LLM GatewayDisplay name Course TutorAPI key your sk-keyAPI type Chat Completions
4. Set up the model
VS Code now opens a file called chatLanguageModels.json. Replace the models section so that the file looks like this:
[
{
"name": "GWU LLM Gateway",
//...only...edit...models...section:
"models": [
{
"id": "standard-tutor",
"name": "Course Tutor",
"url": "https://nimbnode44.nimbus.seas.gwu.edu/llm/v1/chat/completions",
"toolCalling": true,
"vision": true,
"maxInputTokens": 64000,
"maxOutputTokens": 8000
}
]
}
]
ONLY modify the models section – leave the top part of the config alone!

5. Select the model
- We still have to tell VS Code to use the new model we added. Once again, click the Auto button to change from the default.
- Click the small stars icon next to Copilot. This will open the GWU LLM Gateway model group that you just added.
- Choose Course Tutor in the model picker.

6. Try it
With Course Tutor selected, ask a question about your project. In Project 2A, for example:
Explain the two types of encryption used in this project for me.
You should get a direct explanation like the following.

Then ask it to do the work for you:
Write the
handlefunction insrc/dns_ingress.pyfor me.
You should get a question or a hint instead of the code. If an assistant writes project code for you, stop and tell the instructor.
Using it effectively
- Start a new chat for each new topic. Every message resends the whole conversation, so long chats use up your budget faster.
- Attach only the files you need. Large requests cost more, and very large ones are rejected.
- Your key has a weekly budget. It covers all your usage and resets each week. Normal use should stay well inside it.
- Read every change before you accept it. You’ll be asked to explain your code.
If something goes wrong
| What you see | What to do |
|---|---|
| Connection error or timeout | Check that you’re on the GW network or VPN, and that the url in chatLanguageModels.json matches the one above exactly. |
| Authentication error, or 401 | Your key was entered incorrectly. Open Chat: Manage Language Models again and re-enter it. |
| Model not found, or not allowed | Check that id is exactly standard-tutor. |
| Course Tutor isn’t in the model picker | Restart VS Code. Check that toolCalling is true, and that the file is saved. |
| Request too large | Start a new chat, or attach fewer files. |
| Budget exceeded | Contact the professor. |
If you’re still stuck, ask the course staff. Never post your key in a message, a screenshot or a commit.