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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f29d14c0afefe6761867db5635d862e26444cc75ff7f2fa339c1cd49c27a64
|
|
| MD5 |
f8100ddb6f073aacd2dd51ec9b51c733
|
|
| BLAKE2b-256 |
aeac8c3e932f261a366358c58f14cb46bf302272da0ccc5d24738298354c1965
|
Provenance
The following attestation bundles were made for llm_github_copilot-0.1.tar.gz:
Publisher:
publish.yml on jmdaly/llm-github-copilot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_github_copilot-0.1.tar.gz -
Subject digest:
c7f29d14c0afefe6761867db5635d862e26444cc75ff7f2fa339c1cd49c27a64 - Sigstore transparency entry: 188040708
- Sigstore integration time:
-
Permalink:
jmdaly/llm-github-copilot@de5664c3ae42f21066f8513190121b34925154d1 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/jmdaly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de5664c3ae42f21066f8513190121b34925154d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_github_copilot-0.1-py3-none-any.whl.
File metadata
- Download URL: llm_github_copilot-0.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86976e852eebf2452baa76621d71ffdd6efd626b9cc0a5805868db62429e088
|
|
| MD5 |
ac8681d2a9e300997518454068f22a02
|
|
| BLAKE2b-256 |
a1bef5145a641a56ae35fe56b4d05d2d3178e8a9d287ea39f1f74684fa97bad1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_github_copilot-0.1-py3-none-any.whl -
Subject digest:
d86976e852eebf2452baa76621d71ffdd6efd626b9cc0a5805868db62429e088 - Sigstore transparency entry: 188040709
- Sigstore integration time:
-
Permalink:
jmdaly/llm-github-copilot@de5664c3ae42f21066f8513190121b34925154d1 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/jmdaly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de5664c3ae42f21066f8513190121b34925154d1 -
Trigger Event:
release
-
Statement type: