Skip to main content

TuringPulse SDK integration for OpenAI

Project description

turingpulse-sdk-openai

TuringPulse SDK integration for OpenAI — automatic tracing for GPT-4, GPT-4o, and Embeddings.

Installation

pip install turingpulse-sdk-openai

Quick Start

from openai import OpenAI
from turingpulse_sdk import init, TuringPulseConfig
from turingpulse_sdk_openai import patch_openai

init(TuringPulseConfig(api_key="sk_live_...", workflow_name="my-project"))
patch_openai(name="my-project")

client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

Documentation

Full documentation: turingpulse.ai/docs/sdk/openai

Requirements

  • Python >= 3.11
  • turingpulse-sdk >= 1.0.0
  • openai >= 1.78.0

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

turingpulse_sdk_openai-1.5.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turingpulse_sdk_openai-1.5.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file turingpulse_sdk_openai-1.5.2.tar.gz.

File metadata

  • Download URL: turingpulse_sdk_openai-1.5.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for turingpulse_sdk_openai-1.5.2.tar.gz
Algorithm Hash digest
SHA256 b5ab0643775a2efc1b35bc74873d4cf844b2facb1a8400951260c1170acc7e4c
MD5 d151dca730a68d8a30b06582ea0f7303
BLAKE2b-256 aaab6b8fdaf88833d46ecc45e5eae7fc3bfdccb1e2a31a8a498531e3d515d472

See more details on using hashes here.

File details

Details for the file turingpulse_sdk_openai-1.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for turingpulse_sdk_openai-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8aca821b95ad209e4a177a2a1fe2eb207bde4930ac1dfe1f555daf97778f5a4
MD5 c6c514fe0adba021dcbb488765976da8
BLAKE2b-256 5c81e53d1a7ac6a7eb3a73c2ede3a4e49ebc52daf46eaa207977cd3f8c355b3d

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