GitHub Copilot
Use Cortecs models in GitHub Copilot Chat
Visual Studio Code supports custom model endpoints for GitHub Copilot Chat. Connect Cortecs to use its models for chat and agent tools in VS Code.
1. Add a custom endpoint
Install the latest Visual Studio Code and the GitHub Copilot Chat extension.
Open the Command Palette and run Chat: Manage Language Models.
Select Add Models, then Custom Endpoint.
Use Cortecs as the group and display name, enter your Cortecs API key, and select Responses as the API type.
2. Configure a model
VS Code opens chatLanguageModels.json. Update the generated model entry with:
id: The exact Cortecs model ID
name: The label shown in the model picker
url:
https://api.cortecs.ai/v1/responsestoolCalling:
truefor a model that supports tool callingvision:
trueonly for a model that supports image inputmaxOutputTokens: A supported output limit for the model
maxInputTokens: The model's context size minus
maxOutputTokens
Use the model catalog to check capabilities and context size. Keep the API key value generated by VS Code instead of adding the key directly to version-controlled files.
Save the file, return to Copilot Chat, and select the Cortecs model from the model picker. If it does not appear, reload VS Code.
For the full configuration schema, see the Visual Studio Code language model documentation.
Last updated