Skip to main content

Bridging AI models

Project description

codecov GitHub Workflow Status PyPI - License GitHub Pipenv locked Python version PyPI - Downloads

OmniBridge

OmniBridge is a CLI tool that bridges between different AI models. It helps you can access different AI models in a centralized place.

Install

> pip install omnibridge

Usage

Available in CLI with the following arguments:

  • -m / --model
  • -p / --prompt
  • -l / --load-config

single model example:

python main.py -m chatgpt -p hello

multi model example:

python main.py -m chatgpt -p hello -m dalle -p goodbye

Note that the order of specification matters, meaning that in the above example, chatgpt will get the prompt hello and dalle will get the prompt goodbye

The configurations can be set in a .json file and given to the CLI tool with the flag -l <PATH_TO_CONFIG_FILE>.

For example:

{
    "chatgpt": {
        "api_key": "...",
        "model": "..."
    },
    "hugging_face": {
        "api_key": "...",
        "model_id": "..."
    },
    "dalle": {
        "api_key": "...",
        "num_of_images": ...,
        "resolution": "..."
    }
}

Contribute:

requirerments:

  • Python >=3.8

steps:

  1. Fork and clone this repository
  2. pip install pipenv
  3. pipenv install (in the root folder)
  4. pipenv shell

Run linter locally

inside pipenv shell, execute

ruff check ./

Run tests locally

pipenv run python -m pytest

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

OmniBridge-0.1.59.tar.gz (14.8 kB view details)

Uploaded Source

File details

Details for the file OmniBridge-0.1.59.tar.gz.

File metadata

  • Download URL: OmniBridge-0.1.59.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for OmniBridge-0.1.59.tar.gz
Algorithm Hash digest
SHA256 1f3a21c3f45661dc83c0b3a8781b55c1b5a494c3881ca95fb59516d56e8924a7
MD5 2a8b40f675475dcddc83c6cb75d8a300
BLAKE2b-256 04e9b5d70b8f97a551ed4bed5358fe7258371d4583260d4e833644e63309656b

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