GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ezzcodeezzlife/fileGPT: fileGPT is a powerful and easy-to-use CLI tool that allows you to interact with the OpenAI GPT-4 & GPT-3.5 model to apply the instructions to your file directly.

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
main.js
main.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 

Repository files navigation

fileGPT

fileGPT is a powerful and easy-to-use CLI tool that allows you to interact with the OpenAI GPT-4 & GPT-3.5 model to get code completion suggestions and apply the instructions to your code directly.

Installation

To install this package globally, you can use the following command:

npm install -g filegpt

Usage

npx filegpt <API_KEY> <File_Path> <Instruction>
  • <API_KEY>: Your OpenAI API key.
  • <Instruction>: The instruction you want to provide to the GPT-3.5-turbo model.
  • <File_Path>: The path to the file you want to apply the changes to.

Example

Suppose you have the following code in a file called example.js:

function helloWorld() {
  console.log("Hello, world!");
}

And you want to add a new function to say goodbye. You can run the following command:

npx filegpt "sk-123..." example.js "add a function to say goodbye"

The CLI tool will interact with the GPT- 3.5/4 model and update the file with the new function:

function helloWorld() {
  console.log("Hello, world!");
}

function sayGoodbye() {
  console.log("Goodbye!");
}

Dependencies

  • openai: The official OpenAI API wrapper for Node.js.
  • axios: Promise-based HTTP client for Node.js.

Support

If you encounter any issues or have any feature requests, please feel free to create an issue on the GitHub repository.

Contributing

Contributions are always welcome! Please fork the repository, make your changes, and submit a pull request.


Note: This package uses the OpenAI API, which may have its usage costs. Please review the OpenAI Pricing for more information.

About

fileGPT is a powerful and easy-to-use CLI tool that allows you to interact with the OpenAI GPT-4 & GPT-3.5 model to apply the instructions to your file directly.

www.npmjs.com/package/filegpt

Topics

chatgptcopilotfilesgpt-3gpt-4gpt3gpt4

Resources

Readme
Activity

Stars

12 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.