Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

copilot2gpt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copilot2gpt

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Copilot 2 GPT-4

This is a Sinatra-based application that serves as a bridge between GitHub Copilot and GPT-4 model. It provides endpoints to interact with the GPT-4 model and handles authorization using GitHub tokens.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have Ruby installed on your machine. You can check if you have Ruby installed by running:

ruby -v

Installing

Clone the repository:

git clone https://github.com/lululau/copilot2gpt.git
cd copilot2gpt

Install the required gems:

bundle install

Running the application

You can start the application by running:

bundle exec exe/copilot2gpt

The application will start on port 8080.

API Endpoints

The application provides the following endpoints:

  • GET /openai/models: Returns a list of available models.
  • POST /openai/chat/completions: Mocks a Cloudflare AI Gateway API
  • POST /v1/chat/completions: Completes a chat with the AI model.

Docker

This application can also be run in a Docker container. Build the Docker image by running:

docker build -t your-image-name .

Then, you can start the application in a Docker container by running:

docker run -p 8080:8080 your-image-name

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

FAQs

Package last updated on 28 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc