Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 663 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 663 Bytes

langchain-github-copilot

This package contains the LangChain integration with GithubCopilot

Installation

pip install -U langchain-github-copilot

And you should configure credentials by setting the following environment variables:

GITHUB_TOKEN

How to get a Github Token? Run the setup.py python script to create a .env file with the Github Token.
python setup.py

Chat Models

ChatGithubCopilot class exposes chat models from GithubCopilot.

from langchain_github_copilot import ChatGithubCopilot

llm = ChatGithubCopilot()
llm.invoke("Sing a ballad of LangChain.")