Notebooks
L
Langfuse
Integration Fireworks Ai

Integration Fireworks Ai

observabilityllmsgenaicookbookprompt-managementhacktoberfestlarge-language-modelsnextraLangfuselangfuse-docs

Observability for Fireworks AI with Langfuse

This guide shows you how to integrate Fireworks AI with Langfuse. Fireworks AI's API endpoints are fully compatible with the OpenAI SDK, allowing you to trace and monitor your AI applications seamlessly.

What is Fireworks AI? Fireworks AI is a platform that provides API access to state-of-the-art open-source and proprietary AI models with OpenAI-compatible endpoints.

What is Langfuse? Langfuse is an open source LLM engineering platform that helps teams trace API calls, monitor performance, and debug issues in their AI applications.

Step 1: Install Dependencies

[ ]

Step 2: Set Up Environment Variables

[1]

Step 3: Use Langfuse OpenAI Drop-in Replacement

[2]

Step 4: Run an Example

[ ]

Step 5: See Traces in Langfuse

After running the example, log in to Langfuse to view the detailed traces, including:

  • Request parameters
  • Response content
  • Token usage and latency metrics

Langfuse Trace Example

Public example trace link in Langfuse