OpenRouter
Bundles 包含支援與 AgentBuilder 特定第三方整合的自訂Components。
此頁面描述 OpenRouter bundle 中可用的Components。
如需 OpenRouter 功能和 OpenRouter Components使用的功能的詳細資訊,請參閱 OpenRouter 文件。
OpenRouter 文字產生
此Components使用 OpenRouter 的統一 API 從不同供應商產生多個 AI 模型的文字。
它可以輸出 Model Response (Message) 或 Language Model (LanguageModel)。
當您想要將 OpenRouter 模型用作另一個 LLM 驅動Components的 LLM 時,請使用 Language Model 輸出,例如 Agent 或 Smart Function Components。
如需詳細資訊,請參閱語言模型Components。
OpenRouter 文字產生參數
某些參數在視覺編輯器中預設為隱藏。 您可以透過 Components的標頭選單 中的 Controls 修改所有參數。
| Name | Type | Description |
|---|---|---|
| api_key | SecretString | 輸入參數。您的 OpenRouter API 金鑰,用於驗證。 |
| site_url | String | 輸入參數。您的網站 URL,用於 OpenRouter 排名。 |
| app_name | String | 輸入參數。您的應用程式名稱,用於 OpenRouter 排名。 |
| provider | String | 輸入參數。要使用的 AI 模型供應商。 |
| model_name | String | 輸入參數。用於聊天完成的特定模型。 |
| temperature | Float | 輸入參數。控制輸出中的隨機性。範圍:[0.0, 2.0]。預設值:0.7。 |
| max_tokens | Integer | 輸入參數。要產生的最大 token 數。 |