Skip to content

Copilot Extension to connect and chat with GitHub Models

Notifications You must be signed in to change notification settings

copilot-extensions/github-models-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@models Copilot Extension

This is a GitHub Copilot Extension that provides a way to interact with GitHub Models, directly in Copilot Chat.

Note

Copilot Extensions are in public beta and GitHub Models are in limited public beta. They may be subject to change. To request access to GitHub Models, join the waitlist.

What it can do

You can ask it things like "what models are available?" or "which model should I use for my use-case?". You can also ask it to execute a basic prompt using a particular model.

Description Image
User asking @models for a recommended model that is low-cost and supports function calling User asking @models for a recommended model that is low-cost and supports function calling
Dialogue with the Extension, asking for an OpenAI model Dialogue with the Extension, asking for an OpenAI model
User executing a basic prompt using the model that the extension recommended User executing a basic prompt using the model that the extension recommended

Development

  1. Install dependencies:
npm install
  1. Run the server
  • To run in development mode:
npm run dev
  • To build and run in production mode:
npm run build && npm start
  1. Follow this guide to make your server accessible to the internet

In short, we would expose a public URL for our local server using the following command (follow the guide for detailed setup instructions):

ngrok http http://localhost:3000
  1. Follow this guide to create a GitHub app
  2. Follow this guide to configure the app to use the public URL from (3.)
  3. Use your newly installed app! On any copilot enabled page, type @your-app-name <prompt> (from the app created in 4.) to interact with your local installation of this extension!

Copilot Extensions Documentation