Skip to main content

Bridging AI models

Project description

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

OmniBridge

OmniBridge wrap and connects different AI models. It helps access different AI models in a centralized place.

Install

Clone the repository

git clone https://github.com/OmniSpective/OmniBridge.git
cd OmniBridge/

Inside the repository, install pipenv dependencies and launch the environment

pipenv install
pipenv shell

Now you can start using OmniBridge!

Usage

Add your key

python main.py create key --name open_ai --value <value>

Add your model

python main.py create model chatgpt --name gpt3.5 --key open_ai

You can now run chatGPT from your cli!

python main.py run model --name gpt3.5 --prompt "tell me a joke"

You can also use the model you created to build flows (aka Auto-GPT), passing the output of one model to several others!

python main.py create flow --name chef --model gpt3.5 -i "what ingridients do I need for the dishes?" 
"what wine would you suggest to pair with the dishes" "how much time does it take to prepare?"

This command set up four instances of your model, the first instance will handle your prompt as you would expect regularly, however, instead of returning the output, it will pass it to the other three, adding a specific instruction for each!

Understand it best with an example - (Notice it may take a short while to generate a response.)

python main.py run flow --name chef --prompt "suggest two dishes for a romantic date"

This should return

1. Filet Mignon with Roasted Vegetables: <description>
2. Lobster Risotto: <description>
******************************************************************

Ingridients:
< a list of ingridients>
******************************************************************

1. Filet Mignon with Roasted Vegetables: A red wine like a Cabernet Sauvignon or a Merlot...
2. Lobster Risotto: A white wine like a Chardonnay or a Sauvignon Blanc...
******************************************************************

Typical cooking times for a filet mignon can range from 8 to 12 minutes, and for lobster risotto, 
it can take around 30-40 minutes.



We are working on more cool stuff!

Community

Come share your ideas, usage, and suggestions!
Join our discord server and share your feedback and ideas with us! Discord Icon

Contribute:

Join us in shaping the future of A.I!
For information on how to contribute, see here.

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

Uploaded Source

File details

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

File metadata

  • Download URL: OmniBridge-0.1.71.tar.gz
  • Upload date:
  • Size: 19.7 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.71.tar.gz
Algorithm Hash digest
SHA256 651b07c85f48c9d3f1c99e5e894c3ca0d3341a50e9ac7990660264610e8d37db
MD5 74a0e8ac905f4bc7e6c08bc1b371e202
BLAKE2b-256 098c17485c26586e9e3a2e7c8eadc043edcfabfcf393d28f727bf70802cd612f

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