PromptLayer takes less than 5 minutes to get started. It’s super easy to add PromptLayer to an existing project. Usually only takes one line. Get started with the code below!
# Make sure to `pip install promptlayer`
import promptlayer

# Swap out your 'from openai import OpenAI'
OpenAI = promptlayer.openai.OpenAI
client = OpenAI()

# Do something fun 🚀
completion = client.chat.completions.create(
  model="gpt-3.5-turbo",
  messages=[
    {"role": "system", "content": "You are an AI."},
    {"role": "user", "content": "Compose a poem please."}
  ],
  pl_tags=["getting-started"]
)