AI (Vercel AI SDK, OpenAI, Anthropic)
Record every LLM call made through the Vercel AI SDK, the OpenAI client or the Anthropic client as OpenPanel AI events.
@openpanel/ai records LLM calls from the Vercel AI SDK and the official OpenAI and Anthropic clients. It is part of the AI observability beta.
- Set it up with the Vercel AI SDK
- Wrap an OpenAI client
- Wrap an Anthropic client
- Send events yourself with
op.ai()or the raw payload