Authentication
Create a Fireworks API key, then set theFIREWORKS_API_KEY environment variable.
Prompt caching
Prompt caching happens automatically when you use theFireworks model. Read more about how Fireworks handles caching in their docs.
Example
Install theopenai package:
Fireworks with your Agent:
Parameters
Fireworks extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.