Skip to main content

馃憪 Instantiate chat completion LLM

Let's instantiate the chat completion LLM to use as the "brain" of our agent and for any of the tools if required.

We will use Fireworks AI's free AND open-source firefunction-v1 model via the ChatFireworks API in LangChain.

Fill in any <CODE_BLOCK_N> placeholders and run the cells under the Step 5: Instantiate chat completion LLM section in the notebook to create an instance of ChatFireworks with the firefunction-v1 model.

The answers for code blocks in this section are as follows:

CODE_BLOCK_8

Answer
ChatFireworks(
model="accounts/fireworks/models/firefunction-v1", temperature=0.0, max_tokens=1024
)