The command line tool to interface with Generative AI.
Project description
EchoAI DEV: The command line tool to interface with Generative AI
Install
pip install openai-dev
Usage
This cli depends on openai
and it needs to be configured with your OpenAI API token.
export OPENAI_API_KEY='sk-...'
Once that's done, you can use the echoai
command-line tool to interface with Generative AI. Here is an example of how you can use it:
echoai "Why does the Python live on land?"
This will generate a response from the Generative AI that hopefully answers the question. Of course, the quality of the response will depend on the specific model and prompt used.
Disclaimer: AI jokes may not be funny to human beings. Use at your own risk.
OpenAI environment variables.
The echoai
cli works with the environment variables set for OpenAI. If you use Azure endpoints, you can set your OPENAI_API_TYPE
, _VERSION
, _ENGINE
and _BASE
according to your Azure project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for echoai_dev-0.1.1.145b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c0ad8993bfda230939a572179e354041636369442d6868a21d5646455cbbb9 |
|
MD5 | e860665b5dbe5e0f359b04eedaea734d |
|
BLAKE2b-256 | 1d4272845035877edab7d70a6f5b2a6549f2e5e66e9ee26a867d4c281ced4dcf |