Skip to main content
Note*: This instrumentation also works with Azure OpenAI

Install

Setup

Add your OpenAI API key as an environment variable:
Connect your application to Phoenix with the register function:

Run OpenAI

Observe

Now that you have tracing setup, all invocations of OpenAI (completions, chat completions, embeddings) will be streamed to your running Phoenix for observability and evaluation.

Resources