jjleng/copilot-more: $10/month GPT-4o and Claude-3.5-Sonnet APIs for coding and beyond. #962
Labels
AI-Agents
Autonomous AI agents using LLMs
AI-Chatbots
Topics related to advanced chatbot platforms integrating multiple AI models
ai-platform
model hosts and APIs
code-generation
code generation models and tools like copilot and aider
github
gh tools like cli, Actions, Issues, Pages
Models
LLM and ML model repos and links
openai
OpenAI APIs, LLMs, Recipes and Evals
Software2.0
Software development driven by AI and neural networks.
jjleng/copilot-more: $10/month GPT-4o and Claude-3.5-Sonnet APIs for coding and beyond.
Snippet
"copilot-more
copilot-more maximizes the value of your GitHub Copilot subscription by exposing models like gpt-4o and Claude-3.5-Sonnet for use in agentic coding tools such as Cline, or any tool that supports bring-your-own-model setups. Unlike costly pay-as-you-go APIs, this approach lets you leverage these powerful models affordably. (Yes, $10 per month maximum.)
The exposed models aren't limited to coding tasks—you can connect any AI client and customize parameters like temperature, context window length, and more.
Ethical Use
🏃♂️ How to Run
Get the refresh token
A refresh token is used to get the access token. This token should never be shared with anyone :). You can get the refresh token by following the steps below:
device_code
anduser_code
:user_code
.YOUR_DEVICE_CODE
with thedevice_code
obtained earlier and run:access_token
starting withgho_
.Install and run copilot_more
git clone https://github.com/jjleng/copilot-more.git
cd copilot-more
# install dependencies
poetry install
# run the server. Replace gho_xxxxx with the refresh token you got in the previous step. Note, you can use any port number you want.
REFRESH_TOKEN=gho_xxxxx poetry run uvicorn copilot_more.server:app --port 15432
✨ Magic Time
Now you can connect Cline or any other AI client to
http://localhost:15432
and start coding with the power of GPT-4o and Claude-3.5-Sonnet without worrying about the cost. Note, the copilot-more manages the access token, you can use whatever string as API keys if Cline or the AI tools ask for one.🤔 Limitation
The GH Copilot models sit behind an API server that is not fully compatible with the OpenAI API. You cannot pass in a message like this:
copilot-more takes care of this limitation by converting the message to a format that the GH Copilot API understands. However, without the type, we cannot leverage the models' vision capabilities, so that you cannot do screenshot analysis.
Suggested labels
None
The text was updated successfully, but these errors were encountered: