Overview
Integration details
Class | Package | Local | Serializable | JS support | Downloads | Version |
---|---|---|---|---|---|---|
ChatFireworks | langchain-fireworks | ❌ | beta | ✅ |
Model features
Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
---|---|---|---|---|---|---|---|---|---|
✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
Setup
To access Fireworks models you’ll need to create a Fireworks account, get an API key, and install thelangchain-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:Installation
The LangChain Fireworks integration lives in thelangchain-fireworks
package:
Instantiation
Now we can instantiate our model object and generate chat completions:- TODO: Update model instantiation with relevant params.