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.3.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.3.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turingpulse_sdk_openai-1.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 788cac775d1433ee023ae86b8839b953fced8568db12dbf6d6af11afde603f17
MD5 28776ac22cff3054d277b90c2680d3f9
BLAKE2b-256 b66643e3f093b28158e9a9fdd02374a3731076d6f50d547518f53a49d9e2d7c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for turingpulse_sdk_openai-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c437803e9cdac3d5e9e0c0a7f85e4fb97ae3bc375ad9a52df45417ba5def2b8c
MD5 220b5a74f15c06477df9719cd549ec96
BLAKE2b-256 1fd2d4e2f4d2d5fe75d7999f567637969340965dfb8d0da98110db474a851247

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