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

Uploaded Python 3

File details

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

File metadata

  • Download URL: turingpulse_sdk_openai-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 0562e85cada4320b9de9693f0a90870ed3a8b28b0b1a2d0076f0e8ae707d89e8
MD5 d5d8a7399bab63be554ded4e451e1f5e
BLAKE2b-256 e842584adadcc0852cb442e3140bad7556700e01717d5ee0334000817e827f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for turingpulse_sdk_openai-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ee5e9f6f54957af8ecbe64656e15da5dca01a751265f95771de55ed658496f
MD5 ed7030d628fc2a81aa6868aad625074d
BLAKE2b-256 9342c48ca064f40691c9ad470f325d59619484f9fe13ba5f41e617c3a51e378d

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