Skip to main content

vibraniumdome-sdk

Project description

vibraniumdome-sdk

Overview

Client SDK to send LLM interactions to the Vibranium Dome System. Supports both the deprecated version of OpenAI Python SDK 0.28.1, and the new version 1.*

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
from openai import OpenAI

from vibraniumdome_sdk import VibraniumDome

VibraniumDome.init(app_name="vibraniumdome_sdk_openai_test_app")

client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
completion = client.chat.completions.create(
    model="gpt-3.5-turbo",
    messages=[{"role": "user", "content": "Tell me a joke about opentelemetry"}],
    user="user-123456",
    extra_headers={"x-session-id": "abcd-1234-cdef"},
)

print(completion.choices[0].message.content)

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vibraniumdome_sdk-0.6.0.tar.gz
  • Upload date:
  • Size: 2.9 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.6.0.tar.gz
Algorithm Hash digest
SHA256 2cb9c0a2142863ded6798ec22799a66ff0e0c4a2d4b29ec51cc1eb17e762587d
MD5 e41ac3d6a3b011cfb8fef43801e6e2a6
BLAKE2b-256 80799fd9e89ecb237951ab3c390465229a9667b4e24e861b6d766df04cc87cee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vibraniumdome_sdk-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7a37514b2c337e3f147e971bcca6aebe4e31c7901e9cca57befb229a90e543d
MD5 5a2b3a3397da3b9a64faef9c8a31a165
BLAKE2b-256 db8b20730877ac5dd77a713576ce68f717770d649b6ba273db11adaa82f9cfa3

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