diff --git a/.pnp.cjs b/.pnp.cjs index 896283583..2972b1b0c 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -12452,7 +12452,7 @@ const RAW_RUNTIME_STATE = ["autoprefixer", "virtual:f04832643e94957b229869c1850c865d9471dcdcb424ec74f2d208812bb3627f82ea73f1d2dd784197a2ae29b9ab9f36119ce32a9c2754d0da49118d3803d822#npm:10.4.14"],\ ["@types/postcss", null],\ ["browserslist", "npm:4.21.9"],\ - ["caniuse-lite", "npm:1.0.30001505"],\ + ["caniuse-lite", "npm:1.0.30001642"],\ ["fraction.js", "npm:4.2.0"],\ ["normalize-range", "npm:0.1.2"],\ ["picocolors", "npm:1.0.0"],\ @@ -12951,7 +12951,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./.yarn/cache/browserslist-npm-4.21.9-f6128308c1-f015dd3d97.zip/node_modules/browserslist/",\ "packageDependencies": [\ ["browserslist", "npm:4.21.9"],\ - ["caniuse-lite", "npm:1.0.30001505"],\ + ["caniuse-lite", "npm:1.0.30001642"],\ ["electron-to-chromium", "npm:1.4.435"],\ ["node-releases", "npm:2.0.12"],\ ["update-browserslist-db", "virtual:f6128308c12e2b37fe427262226a88e213eb66128b3445db14a7af8a6dafb815a9c4562e232b574e216fb796ee19313d71844b195e41ad82170480289a6b575c#npm:1.0.11"]\ @@ -13141,7 +13141,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["caniuse-api", "npm:3.0.0"],\ ["browserslist", "npm:4.21.9"],\ - ["caniuse-lite", "npm:1.0.30001505"],\ + ["caniuse-lite", "npm:1.0.30001642"],\ ["lodash.memoize", "npm:4.1.2"],\ ["lodash.uniq", "npm:4.5.0"]\ ],\ @@ -13149,17 +13149,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["caniuse-lite", [\ - ["npm:1.0.30001505", {\ - "packageLocation": "./.yarn/cache/caniuse-lite-npm-1.0.30001505-e8ffcc1cfd-e0c7b47589.zip/node_modules/caniuse-lite/",\ + ["npm:1.0.30001642", {\ + "packageLocation": "./.yarn/cache/caniuse-lite-npm-1.0.30001642-794b0b6b47-8d80ea82be.zip/node_modules/caniuse-lite/",\ "packageDependencies": [\ - ["caniuse-lite", "npm:1.0.30001505"]\ - ],\ - "linkType": "HARD"\ - }],\ - ["npm:1.0.30001559", {\ - "packageLocation": "./.yarn/cache/caniuse-lite-npm-1.0.30001559-d063fd74f7-1ebeafb957.zip/node_modules/caniuse-lite/",\ - "packageDependencies": [\ - ["caniuse-lite", "npm:1.0.30001559"]\ + ["caniuse-lite", "npm:1.0.30001642"]\ ],\ "linkType": "HARD"\ }]\ @@ -21162,7 +21155,7 @@ const RAW_RUNTIME_STATE = ["@types/react-dom", "npm:18.2.14"],\ ["@types/sass", null],\ ["busboy", "npm:1.6.0"],\ - ["caniuse-lite", "npm:1.0.30001559"],\ + ["caniuse-lite", "npm:1.0.30001642"],\ ["postcss", "npm:8.4.31"],\ ["react", "npm:18.2.0"],\ ["react-dom", "virtual:388c29633752d7c364e0487c276ae72861ce5d69c069bff16a49b35801303d87d39cb24723bbac1721c48df59f346575324fe3c6de8ead4fb7d83d6ae4a0e521#npm:18.2.0"],\ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001505-e8ffcc1cfd-e0c7b47589.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001505-e8ffcc1cfd-e0c7b47589.zip deleted file mode 100644 index 5e6836a07..000000000 Binary files a/.yarn/cache/caniuse-lite-npm-1.0.30001505-e8ffcc1cfd-e0c7b47589.zip and /dev/null differ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001559-d063fd74f7-1ebeafb957.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001559-d063fd74f7-1ebeafb957.zip deleted file mode 100644 index 4cee0ece0..000000000 Binary files a/.yarn/cache/caniuse-lite-npm-1.0.30001559-d063fd74f7-1ebeafb957.zip and /dev/null differ diff --git a/.yarn/cache/caniuse-lite-npm-1.0.30001642-794b0b6b47-8d80ea82be.zip b/.yarn/cache/caniuse-lite-npm-1.0.30001642-794b0b6b47-8d80ea82be.zip new file mode 100644 index 000000000..ef6786921 Binary files /dev/null and b/.yarn/cache/caniuse-lite-npm-1.0.30001642-794b0b6b47-8d80ea82be.zip differ diff --git a/packages/docs/docs/user-guide/plugins/built-in/anthropic.md b/packages/docs/docs/user-guide/plugins/built-in/anthropic.md index f405ccec6..f1cf9ba8d 100644 --- a/packages/docs/docs/user-guide/plugins/built-in/anthropic.md +++ b/packages/docs/docs/user-guide/plugins/built-in/anthropic.md @@ -27,10 +27,10 @@ The Chat (Anthropic) node allows you to use the Claude API to generate text. #### Inputs -| Title | Data Type | Description | Default Value | Notes | -| ------ | ------------------------------------------------------------ | ------------------------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Prompt | `string` or `string[]` or `chat-message` or `chat-message[]` | The messages to send to Claude to get a response. | (Required) | Claude Instant and Claude 2.0 does not support a system prompt like GPT does, so you may have to get inventive to place words into Claude's mouth using Prompt nodes set to `AI`. | -| System | `string` | A system prompt to provide context and instructions to Claude. This input is only available when using a Claude 3 model. | (Optional) | Use the system prompt to specify a particular goal or role for Claude. You can instead include a `system`-type `chat-message` in the Prompt input. If there are multiple `system`-type messages, only the first one will be used. See the [guide to system prompts](https://docs.anthropic.com) for more information. | +| Title | Data Type | Description | Default Value | Notes | +| ------ | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Prompt | `string` or `string[]` or `chat-message` or `chat-message[]` | The messages to send to Claude to get a response. | (Required) | Claude Instant and Claude 2.0 does not support a system prompt like GPT does, so you may have to get inventive to place words into Claude's mouth using Prompt nodes set to `AI`. | +| System | `string` | A system prompt to provide context and instructions to Claude. This input is only available when using a Claude 3 model. | (Optional) | Use the system prompt to specify a particular goal or role for Claude. You can instead include a `system`-type `chat-message` in the Prompt input. If there are multiple `system`-type messages, only the first one will be used. See the [guide to system prompts](https://docs.anthropic.com) for more information. | #### Outputs @@ -40,15 +40,15 @@ The Chat (Anthropic) node allows you to use the Claude API to generate text. #### Editor Settings -| Setting | Description | Default Value | Use Input Toggle | Input Data Type | -| ----------- | ---------------------------------------------------------------------------------------------------------------------- | -------------- | ---------------- | --------------- | -| Model | The Claude model to use for the request (Claude 3 Opus, Claude 3 Sonnet, Claude 2.1, Claude 2 or Claude Instant) | Claude 2 | Yes | `string` | -| Temperature | The sampling temperature to use. Lower values are more deterministic. Higher values are more "creative". | 0.5 | Yes | `number` | -| Top P | Alternate sampling mode using the top X% of values. 0.1 corresponds to the top 10%. | 1 | Yes | `number` | -| Use Top P | Whether to use the Top P sampling mode. | false | Yes | `boolean` | -| Max Tokens | The maximum number of tokens that GPT is allowed to return. When hitting the max tokens, the response will be cut off. | 1024 | Yes | `number` | -| Stop | Comma separated list of stop tokens. If any stop token is encountered, the response will end immediately. | (None) | Yes | `string[]` | +| Setting | Description | Default Value | Use Input Toggle | Input Data Type | +| ----------- | ---------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------- | --------------- | +| Model | The Claude model to use for the request (Claude 3 Opus, Claude 3 Sonnet, Claude 2.1, Claude 2 or Claude Instant) | Claude 2 | Yes | `string` | +| Temperature | The sampling temperature to use. Lower values are more deterministic. Higher values are more "creative". | 0.5 | Yes | `number` | +| Top P | Alternate sampling mode using the top X% of values. 0.1 corresponds to the top 10%. | 1 | Yes | `number` | +| Use Top P | Whether to use the Top P sampling mode. | false | Yes | `boolean` | +| Max Tokens | The maximum number of tokens that GPT is allowed to return. When hitting the max tokens, the response will be cut off. | 1024 | Yes | `number` | +| Stop | Comma separated list of stop tokens. If any stop token is encountered, the response will end immediately. | (None) | Yes | `string[]` | #### Using Vision with Claude 3 Models -When using a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet), you can use the ![Assemble Message Node](../../../node-reference/assemble-message.mdx) to create prompt messages that contain an image. +When using a Claude 3 model (Claude 3 Opus or Claude 3 Sonnet), you can use the [Assemble Message Node](../../../node-reference/assemble-message.mdx) to create prompt messages that contain an image. diff --git a/yarn.lock b/yarn.lock index aa8020e11..f21087e04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8886,17 +8886,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503": - version: 1.0.30001505 - resolution: "caniuse-lite@npm:1.0.30001505" - checksum: e0c7b47589b2480d595ff647eb3753ebf657bfb650502c0da5735e6f964218ebbd3c72275b100ebd6e513c7ce06ec804e82b62af6caa5856c4f3dc7e3ed3ca5b - languageName: node - linkType: hard - -"caniuse-lite@npm:^1.0.30001406": - version: 1.0.30001559 - resolution: "caniuse-lite@npm:1.0.30001559" - checksum: 1ebeafb957b58e863b673ec2e78ea228ab43a24e4644a7050497dc5f798bdd9e4c510138c0807b65af8653c145cd09a9dff65faa1a9b34e30927dc4b67327122 +"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001503": + version: 1.0.30001642 + resolution: "caniuse-lite@npm:1.0.30001642" + checksum: 8d80ea82be453ae0fdfea8766d82740a4945c1b99189650f29bfc458d4e235d7e99027a8f8bc5a4228d8c4457ba896315284b0703f300353ad5f09d8e693de10 languageName: node linkType: hard