LangChain-Fireworks
This is the partner package for tying Fireworks.ai and LangChain. Fireworks really strive to provide good support for LangChain use cases, so if you run into any issues please let us know. You can reach out to us in our Discord channel
Installation
To use the langchain-fireworks package, follow these installation steps:
pip install langchain-fireworks
Basic usage
Setting up
Sign in to Fireworks AI to obtain an API Key to access the models, and make sure it is set as the FIREWORKS_API_KEY environment variable.
Once you've signed in and obtained an API key, follow these steps to set the FIREWORKS_API_KEY environment variable:
Linux/macOS: Open your terminal and execute the following command:
export FIREWORKS_API_KEY=your_api_key
Note: To make this environment variable persistent across terminal sessions, add the above line to your ~/.bashrc, ~/.bash_profile, or ~/.zshrc file.
Windows: For Command Prompt, use:
set FIREWORKS_API_KEY=your_api_key
Set up your
|