diff --git a/src/index.ts b/src/index.ts index 9af51555..563aa131 100644 --- a/src/index.ts +++ b/src/index.ts @@ -182,7 +182,7 @@ export class Anthropic extends Core.APIClient { if (!options.dangerouslyAllowBrowser && Core.isRunningInBrowser()) { throw new Errors.AnthropicError( - "It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew Anthropic({ apiKey, dangerouslyAllowBrowser: true });\n\nTODO: link!\n", + "It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew Anthropic({ apiKey, dangerouslyAllowBrowser: true });\n", ); }