OpenAI Copilot
Your life Copilot powered by OpenAI (CLI interface for OpenAI with searching).
Features:
- Web access and Google search support without leaving the terminal.
- Automatically execute any steps predicted from prompt instructions.
- Human interactions on uncertain instructions to avoid inappropriate operations.
Install
Install the copilot with pip command below:
pip install openai-copilot
Setup
- OpenAI API key should be set to
OPENAI_API_KEYenvironment variable to enable the ChatGPT feature.OPENAI_API_BASEshould be set as well for Azure OpenAI service.
- Google Search API key and CSE ID should be set to
GOOGLE_API_KEYandGOOGLE_CSE_ID.
How to use
Usage: openai-copilot [OPTIONS]
Your life Copilot powered by OpenAI
Options:
--version Show the version and exit.
--verbose Enable verbose information of copilot execution steps
--model MODEL OpenAI model to use for copilot execution, default is
gpt-3.5-turbo
--enable-terminal Enable Copilot to run programs within terminal. Enable
with caution since Copilot may execute inappropriate
commands
--help Show this message and exit.
Here is a conversation sample (user inputs are after >>>)):
# openai-copilot
>>> What is OpenAI?
OpenAI is an artificial intelligence research laboratory consisting of the for-profit corporation OpenAI LP and its parent company, the non-profit OpenAI Inc. The company is dedicated to advancing digital intelligence in a way that is safe and beneficial for humanity as a whole. OpenAI was founded in 2015 by a group of technology leaders including Elon Musk, Sam Altman, Greg Brockman, and Ilya Sutskever. Its mission is to develop and promote friendly AI for the betterment of all humans.
>>> What are the differences between GPT-4 and GPT-3.5?
According to my search results, one of the main differences between GPT-4 and GPT-3.5 is that while GPT-3.5 is a text-to-text model, GPT-4 is more of a data-to-text model. Additionally, GPT-4 has the advantage of providing more creative replies to prompts. However, it's important to note that GPT-4 is not yet released and there is limited information available about it.
>>>
Run in Kubernetes
# Run with gpt-4 (default model)
kubectl run -it --rm copilot \
--env="OPENAI_API_KEY=$OPENAI_API_KEY" \
--restart=Never \
--image=ghcr.io/feiskyer/openai-copilot
# Run with a different model and enable verbose outputs
kubectl run -it --rm copilot \
--env="OPENAI_API_KEY=$OPENAI_API_KEY" \
--restart=Never \
--image=ghcr.io/feiskyer/openai-copilot \
-- --model=gpt-3.5-turbo --verbose
Contribution
The project is opensource at github feiskyer/openai-copilot with Apache License.
If you would like to contribute to the project, please follow these guidelines:
- Fork the repository and clone it to your local machine.
- Create a new branch for your changes.
- Make your changes and commit them with a descriptive commit message.
- Push your changes to your forked repository.
- Open a pull request to the main repository.
Metadata
Release files for openai-copilot 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| openai_copilot-0.2.6.tar.gz | 8.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openai_copilot-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / openai_copilot-0.2.6.tar.gz
| Download URL | openai_copilot-0.2.6.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f0adb49c06886636c7bae2ce2a05d79827d5b98bbcd90c8b887b7518db85713
|
|
BLAKE2b-256 checksum How to use checksums |
fbf917267ada6f5e63338601ad021e5e3029b92ac9e390bb88592bfcd36e8a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.11.6 Darwin/23.1.0
|
Release files / openai_copilot-0.2.6-py3-none-any.whl
| Download URL | openai_copilot-0.2.6-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa5e8026593feff67f1740ea33fd69264078e69395058b98b77fc251035752b9
|
|
BLAKE2b-256 checksum How to use checksums |
d5b10e8d97cf0638814352248de8d2cfe224e53aaf5712f23bcacbfffef90683
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.11.6 Darwin/23.1.0
|
Security for openai-copilot 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.