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.4.0.tar.gz (3.4 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.4.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turingpulse_sdk_openai-1.4.0.tar.gz
  • Upload date:
  • Size: 3.4 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.4.0.tar.gz
Algorithm Hash digest
SHA256 a4e732444c98df6270e52ab391b5be42c5712f722cb863099068edcbd2a902a4
MD5 5f5724d80521ac8bb481069e033f7892
BLAKE2b-256 376d677779a5d9892ae68ae086861c35bf96c5488629c9e7f07cd57f4b2b1244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for turingpulse_sdk_openai-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 247587b6f2e1c3dbfc377da49a649074c3316d1964e0572508278e35efac8923
MD5 412781c636361a68ae40d25c42ed1fe7
BLAKE2b-256 b69c0fae647621770894e86b2fed36f5a5b5dbfc504079ba48b6a1c00379bc37

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