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

Install

Setup

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

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