Groq
Bundles 包含支援特定第三方整合的自 訂Components,與 AgentBuilder 搭配使用。
此頁面描述 Groq bundle 中可用的Components。
如需詳細資訊,請參閱 Groq 文件。
Groq 文字生成
此Components使用 Groq 的語言模型生成文字。
它可以輸出 Model Response (Message) 或 Language Model (LanguageModel)。
具體來說,Language Model 輸出是根據Components參數配置的 ChatGroq 實例。
當您想要將 Groq 模型用作另一個 LLM 驅動Components的 LLM 時,請使用 Language Model 輸出,例如 Agent 或 Smart Function Components。
如需詳細資訊,請參閱語言模型Components。

Groq 文字生成參數
| Name | Type | Description |
|---|---|---|
| groq_api_key | SecretString | 您的 Groq API 金鑰。 |
| groq_api_base | String | API 請求的基礎 URL 路徑。預設值:https://api.groq.com。 |
| max_tokens | Integer | 要生成的最大權杖數。 |
| temperature | Float | 控制輸出的隨機性。範圍:[0.0, 1.0]。預設值:0.1。 |
| n | Integer | 為每個提示生成聊天完成的數量。 |
| model_name | String | 要使用的 Groq 模型名稱。選項會在輸入 API 金鑰和 URL 後從 Groq API 動態獲取。要重新整理模型列表,請點擊 Refresh。 |
| tool_mode_enabled | Boolean | 如果啟用,Components只會顯示與工具搭配使用的模型。 |