Skip to main content

No project description provided

Project description

OLA-AI (OpenAI Compatible Language Assistant) CLI

OLA-AI is a command-line interface tool that helps you create, manage, and run AI-powered prompts using OpenAI Compatible API.

Installation

You can install OLA-AI directly from PyPI:

pip install ola-ai

After installation, set up your OpenAI API key:

ola update_env --key=your_api_key --model=gpt-4o-mini --url=https://api.openai.com/v1

Config will be saved to ~/.ola_env file

Dependencies

OLA-AI relies on the following Python packages:

  • Click
  • PyYAML
  • openai
  • python-dotenv

These will be automatically installed when you install OLA-AI via pip.

Usage

Creating a prompt

To create a new prompt:

ola create [name] [prompt]

Prompts will be saved in ~/.ola_config.yaml file Example:

ola create joke "You are a comedian. Tell a joke about the topic the user provides."

Running a prompt

To run a saved prompt:

ola run [name] [user_input]

Example:

ola run joke "programming"

Listing prompts

To list all saved prompts:

ola list

Deleting a prompt

To delete a saved prompt:

ola delete [name]

Updating environment variables

To update the API key, model, or API base URL:

ola update_env --key=your_api_key --model=gpt-4o-mini --url=https://api.openai.com/v1

Listing environment variables

To view the current environment settings:

ola list_env

Checking the version

To check the version of the OLA-AI CLI:

ola --version

Troubleshooting

  1. API Key Issues: If you're getting authentication errors, make sure you've set your API key correctly using the update_env command.

  2. Command Not Found: If you're getting a "command not found" error, ensure that the installation directory is in your system's PATH.

  3. Unexpected Errors: Check the ola.log file in your current directory for more detailed error information.

Roadmap

  • Add support for multiple AI models
  • Implement a web interface
  • Add collaborative features for sharing prompts

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License.

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.

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

ola_ai-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

ola_ai-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ola_ai-1.0.1.tar.gz.

File metadata

  • Download URL: ola_ai-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ola_ai-1.0.1.tar.gz
Algorithm Hash digest
SHA256 091628412db30211d0e17c198fbcfba1ac262c664225bdd029c7b63e93d54930
MD5 d06294dfeb4f7a70c9fc5c0750f6f4ea
BLAKE2b-256 5ace8f21f9e48aefc70b0de1ea8b90dc5025b6ef5244bafbec50e087144f804e

See more details on using hashes here.

File details

Details for the file ola_ai-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ola_ai-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ola_ai-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7992e010f46bfc3d054fafe5768e3a3b6735420fe036f0512c877e1c433aa151
MD5 0c1818dd598aa82b984547f0ffc7367d
BLAKE2b-256 bb92b4427c54d2341a12e3da7726d450d81e29edd22c5da37cca5ab7c804daf6

See more details on using hashes here.

Supported by

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