Skip to main content

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

Release files for vibraniumdome-sdk 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibraniumdome-sdk 0.6.0
File Size Uploaded
vibraniumdome_sdk-0.6.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vibraniumdome-sdk 0.6.0
File Interpreter ABI Platform
vibraniumdome_sdk-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / vibraniumdome_sdk-0.6.0.tar.gz

Download URL vibraniumdome_sdk-0.6.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2cb9c0a2142863ded6798ec22799a66ff0e0c4a2d4b29ec51cc1eb17e762587d
BLAKE2b-256 checksum
How to use checksums
80799fd9e89ecb237951ab3c390465229a9667b4e24e861b6d766df04cc87cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

Release files / vibraniumdome_sdk-0.6.0-py3-none-any.whl

Download URL vibraniumdome_sdk-0.6.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7a37514b2c337e3f147e971bcca6aebe4e31c7901e9cca57befb229a90e543d
BLAKE2b-256 checksum
How to use checksums
db8b20730877ac5dd77a713576ce68f717770d649b6ba273db11adaa82f9cfa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page