* reorg pt 1 * nav reorg pt 2 * update sidebar ad * resolve comments and combine app pages * playground and voice mode rewrite * fix link * add separate bundle pages * add new pages to sidebar * working on bundles * moving content to new bundle pages * move some sidebar items * fix build * nav labels * small edits * Working on helpers * core components work * wrapping up some more agent duplication * aligning file management * webhooks and file management * data components * address vector store and some legacy components * finish logic params * some work on processors * remove unneeded pages and tidy some llm info * progress on bundles pt 1 * bundles pt 2 * bundles pt 3 * finish looking at integrations * it is done * fix errors * coderabbit and typos * coderabbit pt 2 * resolving mcs pt 1 * separate agents and mcp * still working on some memory stuff * finish message history alignment * incorporate PR 9138 * missed a link * file management ui * align w ui pr * Apply suggestions from code review * memory edits after discussion
37 lines
No EOL
1.9 KiB
Text
37 lines
No EOL
1.9 KiB
Text
---
|
|
title: Groq
|
|
slug: /bundles-groq
|
|
---
|
|
|
|
import Icon from "@site/src/components/icon";
|
|
|
|
[Bundles](/components-bundle-components) contain custom components that support specific third-party integrations with Langflow.
|
|
|
|
This page describes the components that are available in the **Groq** bundle.
|
|
|
|
For more information, see the [Groq documentation](https://groq.com/).
|
|
|
|
## Groq text generation
|
|
|
|
This component generates text using Groq's language models.
|
|
|
|
It can output either a **Model Response** ([`Message`](/data-types#message)) or a **Language Model** ([`LanguageModel`](/data-types#languagemodel)).
|
|
Specifically, the **Language Model** output is an instance of [`ChatGroq`](https://python.langchain.com/docs/integrations/chat/groq/) configured according to the component's parameters.
|
|
|
|
Use the **Language Model** output when you want to use a Groq model as the LLM for another LLM-driven component, such as a **Language Model** or **Smart Function** component.
|
|
|
|
For more information, see [**Language Model** components](/components-models).
|
|
|
|

|
|
|
|
### Groq text generation parameters
|
|
|
|
| Name | Type | Description |
|
|
|------|------|-------------|
|
|
| groq_api_key | SecretString | Your Groq API key. |
|
|
| groq_api_base | String | Base URL path for API requests. Default: `https://api.groq.com`. |
|
|
| max_tokens | Integer | The maximum number of tokens to generate. |
|
|
| temperature | Float | Controls randomness in the output. Range: `[0.0, 1.0]`. Default: `0.1`. |
|
|
| n | Integer | Number of chat completions to generate for each prompt. |
|
|
| model_name | String | The name of the Groq model to use. Options are dynamically fetched from the Groq API after entering your API key and URL. To refresh your list of models, click <Icon name="RefreshCw" aria-hidden="true"/> **Refresh**. |
|
|
| tool_mode_enabled | Boolean | If enabled, the component only displays models that work with tools. | |