https://github.com/devforfu/prompt
A simple CLI tool to invoke GPT-3 Completion API
https://github.com/devforfu/prompt
Last synced: 11 months ago
JSON representation
A simple CLI tool to invoke GPT-3 Completion API
- Host: GitHub
- URL: https://github.com/devforfu/prompt
- Owner: devforfu
- Created: 2021-08-15T18:07:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-16T19:36:23.000Z (almost 5 years ago)
- Last Synced: 2025-04-03T12:24:14.364Z (about 1 year ago)
- Language: Python
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Prompt
======
Code completion using OpenAI's Codex. Helps to setup a simple external tool
that copies selected source file's fragment and sends it to GPT-3. The response
is inserted to the same file.
Using with PyCharm
------------------
#. Download the repo
#. Install it via :code:`pip install .`
#. Open :code:`Preferences > Tools > External tools > Add`
#. Configure as the screenshot shows
#. (Optional) Bind a hotkey to invoke it, e.g. :code:`Ctrl + X`
.. image:: https://github.com/devforfu/prompt/blob/master/images/external_tool.png
Now you should be able to invoke OpenAI's engine to autocomplete selected
fragment of your source file.
.. image:: https://github.com/devforfu/prompt/blob/master/images/fibonacci.gif