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.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

ola_ai-1.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ola-ai-1.0.2.tar.gz.

File metadata

  • Download URL: ola-ai-1.0.2.tar.gz
  • Upload date:
  • Size: 4.4 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.2.tar.gz
Algorithm Hash digest
SHA256 11e2361e52bf49604f035aef21c848748a1688e5c6fdabbf720908ba5397b28a
MD5 10dcc2501f8113b8fad5b8487b704d3d
BLAKE2b-256 0e44db204b3d6b7bc9f982022ede5481de817c58f318c5da4442b1f62ecda9f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ola_ai-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d550423022b0b7c63dbad8d2b355adc433eb02aa0135bbd6eac5e80d72097bfe
MD5 5abc74023f3c5d883299756878e375b7
BLAKE2b-256 3628408eab8d485956def618fc908e0e54ef7607dc0ca2c6d691baa2768ba69d

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