Skip to main content

vibraniumdome-sdk

Project description

vibraniumdome-sdk

Overview

Client SDK to send LLM interactions to the Vibranium Dome System.

Getting Started

Install the PiPY package

https://pypi.org/project/vibraniumdome-sdk/

pip3 install vibraniumdome-sdk

Run sample

To start trace your OpenAI, you need to define VIBRANIUM_DOME_BASE_URL environment variable to point Vibranium Dome service, and to set VIBRANIUM_DOME_API_KEY from Vibranium Dome System; Run it locally via the basic installation:

export VIBRANIUM_DOME_BASE_URL=http://localhost:5001
export VIBRANIUM_DOME_API_KEY=vibranium...

Code sample:

import os
import openai

from vibraniumdome_sdk import VibraniumDome

openai.api_key = os.getenv("OPENAI_API_KEY")

VibraniumDome.init(app_name="openai_test_app")

def main():
    response = openai.ChatCompletion.create(
    model="gpt-3.5-turbo",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Who won the world series in 2020?"},
        {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
        {"role": "user", "content": "Where was it played?"}
    ],
    temperature=0,
    request_timeout=5,
    user="user-123456",
    headers={"x-session-id": "abcd-1234-cdef"},)

    print(response)


if __name__ == "__main__":
    main()

For more details please see documentation here

Contributing

We would appreciate your contributions! 🙌🌟💖 👩‍💻➕👨‍💻 Fork repository, make your changes, and submit a pull request! More details can be found here.

License

MIT License.

See LICENSE to see the full text.

Contact

Got an idea to improve our project? We'd love to hear it and collaborate with you. Don't hesitate to reach out to us! Just open an issue and we will respond to you 🦸‍♀️🦸‍♂️ ! You can see details here.

Documentation

https://docs.vibraniumdome.com

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

vibraniumdome_sdk-0.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

vibraniumdome_sdk-0.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file vibraniumdome_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: vibraniumdome_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

File hashes

Hashes for vibraniumdome_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ad7a3ab0b90617ba481eb896250458dad801e735c950150845878fc12e5691e0
MD5 e7afbb79c2cffe47eb7cd74371a0b4fe
BLAKE2b-256 170df5e24ebd39864fc14adbc22ee4810049394c89c560653e7bb21145ac59f6

See more details on using hashes here.

File details

Details for the file vibraniumdome_sdk-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vibraniumdome_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b221ef630d698a98da33133905aa79b40a6709bcd56041bde3d5b1b8d5e436b3
MD5 beef16ae971cd8a80f7bedcb6fa080bc
BLAKE2b-256 5e878ed9e8e5720d2bc9dec1a47509916a3ae92572a7721b6655c0eacb986cbe

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