Automatic instrumentation for popular AI/ML frameworks
The ZeroEval Python SDK automatically traces intruments the supported integrations, meaning the only thing to do is to initialize the SDK before importing the frameworks you want to trace.
import zeroeval as zeze.init()import openaiclient = openai.OpenAI()# This call is automatically tracedresponse = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "Hello!"}])# Streaming is also automatically tracedstream = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "Tell me a story"}], stream=True)for chunk in stream: if chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="")