import zeroeval as ze
from openai import OpenAI
ze.init()
client = OpenAI()
# Define your prompt with version tracking
system_prompt = ze.prompt(
name="support-bot",
content="""You are a customer support agent for {{company}}.
Be helpful, concise, and professional.""",
variables={"company": "TechCorp"}
)
# Use it normally - model gets patched automatically
response = client.chat.completions.create(
model="gpt-4", # This might run claude-3-sonnet in production!
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": "I need help with my order"}
]
)