Skip to main content

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 echoai-dev

Usage

You can use this cli with either openai GPT or Anthropic Claude (through AWS Bedrock). To use GPT models, configure your OpenAI API token.

export OPENAI_API_KEY='sk-...'

For Anthropic Claude models, use the aws cli to configure your environement by running the command: aws config

Use the environment variable ECHOAI_BACKEND to define which backend model to use. This variable can take two values bedrock or openai. If the variable is not define, the default behavior is openai.

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.

Azure 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.

New features

  • Support for AWS Bedrock (Claude models)
  • Read files from mentioned paths
  • Print code blocks to file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

echoai-dev-0.2.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

echoai_dev-0.2.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file echoai-dev-0.2.1.tar.gz.

File metadata

  • Download URL: echoai-dev-0.2.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for echoai-dev-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c6d531a29dbe9988bc8eaf014eee98446e72757b89809c9708693b057fe4c6a2
MD5 21814915b11731dd1b1090ad4c887634
BLAKE2b-256 0f1f1d8a249551e2be3eb7354183e34663fc82b71a94b7b3ffadc904ccebdc38

See more details on using hashes here.

File details

Details for the file echoai_dev-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: echoai_dev-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for echoai_dev-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e951cd8db46dbc81e546de9efe07903568c22e44d03252957a31728b9e045cd
MD5 2e3cea2ff1c09cfd166581c179138e46
BLAKE2b-256 eeab64a234c725a106149f20943f68b2f19ed0924040418774efe4bb57d49bce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page