Wrapper around Fireworks API for large language models fine-tuned for chat
Fireworks API is compatible to the OpenAI API with some limitations described in https://readme.fireworks.ai/docs/openai-compatibility.
To use, you should have the openai package installed and the FIREWORKS_API_KEY environment variable set.
openai
FIREWORKS_API_KEY
const model = new ChatFireworks({ temperature: 0.9, apiKey: "YOUR-API-KEY",});const response = await model.invoke("Hello, how are you?");console.log(response); Copy
const model = new ChatFireworks({ temperature: 0.9, apiKey: "YOUR-API-KEY",});const response = await model.invoke("Hello, how are you?");console.log(response);
Optional
Wrapper around Fireworks API for large language models fine-tuned for chat
Fireworks API is compatible to the OpenAI API with some limitations described in https://readme.fireworks.ai/docs/openai-compatibility.
To use, you should have the
openai
package installed and theFIREWORKS_API_KEY
environment variable set.Example