Fireworks
features and configuration options, please refer to the API reference.
Overview
Integration details
Class | Package | Local | Serializable | PY support | Downloads | Version |
---|---|---|---|---|---|---|
Fireworks | @langchain/community | ❌ | ✅ | ✅ |
Setup
To access Fireworks models you’ll need to create a Fireworks account, get an API key, and install the@langchain/community
integration package.
Credentials
Head to fireworks.ai to sign up to Fireworks and generate an API key. Once you’ve done this set theFIREWORKS_API_KEY
environment variable:
Installation
The LangChain Fireworks integration lives in the@langchain/community
package:
Instantiation
Now we can instantiate our model object and generate chat completions:Invocation
Chaining
We can chain our completion model with a prompt template like so:- Certain properties are not supported by the Fireworks API, see here.
- Generation using multiple prompts is not supported.