Skip to main content
This doc helps you get started with Fireworks AI chat models. For detailed documentation of all ChatFireworks features and configurations head to the API reference. Fireworks AI is an AI inference platform to run and customize models. For a list of all models served by Fireworks see the Fireworks docs.

Overview

Integration details

Model features

Setup

To access Fireworks models you’ll need to create a Fireworks account, get an API key, and install the langchain-fireworks integration package.

Credentials

Head to (fireworks.ai/login to sign up to Fireworks and generate an API key. Once you’ve done this set the FIREWORKS_API_KEY environment variable:
To enable automated tracing of your model calls, set your LangSmith API key:

Installation

The LangChain Fireworks integration lives in the langchain-fireworks package:

Instantiation

Now we can instantiate our model object and generate chat completions:
  • TODO: Update model instantiation with relevant params.

Invocation

Chaining

We can chain our model with a prompt template like so:

API reference

For detailed documentation of all ChatFireworks features and configurations head to the API reference: python.langchain.com/api_reference/fireworks/chat_models/langchain_fireworks.chat_models.ChatFireworks.html