Skip to main content

GitHub Copilot plugin for LLM CLI tool

Project description

llm-github-copilot

A plugin for LLM adding support for GitHub Copilot.

Installation

You can install this plugin using the LLM command-line tool:

llm install llm-github-copilot

Authentication

This plugin uses GitHub's device code authentication flow. When you first use the plugin, it will prompt you to visit GitHub and enter a code to authenticate.

Usage

Once installed, you can use GitHub Copilot models with the llm command:

# Chat with GitHub Copilot
llm -m github-copilot "Write a Python function that calculates the Fibonacci sequence."

# Specify options like length
llm -m github-copilot "Tell me a joke" -o max_tokens 100

Options

The GitHub Copilot plugin supports the following options:

  • max_tokens: Maximum number of tokens to generate (default: 1024)
  • temperature: Controls randomness in the output (default: 0.7)

Development

To develop this plugin:

# Clone the repository
git clone https://github.com/yourusername/llm-github-copilot.git
cd llm-github-copilot

# Install in development mode
llm install -e .

Testing

To run the tests:

# Install test dependencies
pip install -e ".[test]"

# Run tests
pytest

If you want to record new VCR cassettes for tests, set your API key:

export PYTEST_GITHUB_COPILOT_API_KEY=your_api_key_here
pytest --vcr-record=new_episodes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_github_copilot-0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_github_copilot-0.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_github_copilot-0.1.tar.gz.

File metadata

  • Download URL: llm_github_copilot-0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_github_copilot-0.1.tar.gz
Algorithm Hash digest
SHA256 c7f29d14c0afefe6761867db5635d862e26444cc75ff7f2fa339c1cd49c27a64
MD5 f8100ddb6f073aacd2dd51ec9b51c733
BLAKE2b-256 aeac8c3e932f261a366358c58f14cb46bf302272da0ccc5d24738298354c1965

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_github_copilot-0.1.tar.gz:

Publisher: publish.yml on jmdaly/llm-github-copilot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_github_copilot-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_github_copilot-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d86976e852eebf2452baa76621d71ffdd6efd626b9cc0a5805868db62429e088
MD5 ac8681d2a9e300997518454068f22a02
BLAKE2b-256 a1bef5145a641a56ae35fe56b4d05d2d3178e8a9d287ea39f1f74684fa97bad1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_github_copilot-0.1-py3-none-any.whl:

Publisher: publish.yml on jmdaly/llm-github-copilot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page