Skip to main content

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 輸出,例如 AgentSmart Function Components。

如需詳細資訊,請參閱語言模型Components

Groq component in a basic prompting Flow

Groq 文字生成參數

NameTypeDescription
groq_api_keySecretString您的 Groq API 金鑰。
groq_api_baseStringAPI 請求的基礎 URL 路徑。預設值:https://api.groq.com
max_tokensInteger要生成的最大權杖數。
temperatureFloat控制輸出的隨機性。範圍:[0.0, 1.0]。預設值:0.1
nInteger為每個提示生成聊天完成的數量。
model_nameString要使用的 Groq 模型名稱。選項會在輸入 API 金鑰和 URL 後從 Groq API 動態獲取。要重新整理模型列表,請點擊 Refresh
tool_mode_enabledBoolean如果啟用,Components只會顯示與工具搭配使用的模型。
Search