UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

45 lines (39 loc) 1.33 kB
/** * Cohere Chat Model Node - Version 1 * For advanced usage with an AI chain */ export interface LcLmChatCohereV1Params { /** * The model which will generate the completion. &lt;a href="https://docs.cohere.com/docs/models"&gt;Learn more&lt;/a&gt;. * @builderHint Default to the latest Cohere Command A model (command-a-03-2025). Avoid command-r and command-light legacy variants. * @default command-a-03-2025 */ model?: string | Expression<string>; /** * Additional options to add * @default {} */ options?: { /** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive. * @default 0.7 */ temperature?: number | Expression<number>; /** Maximum number of retries to attempt * @default 2 */ maxRetries?: number | Expression<number>; }; } export interface LcLmChatCohereV1Credentials { cohereApi: CredentialReference; } interface LcLmChatCohereV1NodeBase { type: '@n8n/n8n-nodes-langchain.lmChatCohere'; version: 1; credentials?: LcLmChatCohereV1Credentials; isTrigger: true; } export type LcLmChatCohereV1ParamsNode = LcLmChatCohereV1NodeBase & { config: NodeConfig<LcLmChatCohereV1Params>; }; export type LcLmChatCohereV1Node = LcLmChatCohereV1ParamsNode;