GitHub - copilot-extensions/github-models-extension: Copilot Extension to connect and chat with GitHub Models (original) (raw)

@models Copilot Extension

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

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:
  2. Run the server

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