From 1c2dd5ce5ba27b9245be0f29ade7fdd0ce317893 Mon Sep 17 00:00:00 2001 From: strands-agent <217235299+strands-agent@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:11:01 +0000 Subject: [PATCH 1/2] docs: add openai peer dependency to TypeScript installation Fixes #513 The OpenAI provider documentation was missing the required peer dependency installation. Users would encounter 'openai__WEBPACK_IMPORTED_MODULE_0__ is not a constructor' errors when following the docs. This fix: - Adds 'openai' to the npm install command - Adds a note explaining it's a required peer dependency --- docs/user-guide/concepts/model-providers/openai.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/user-guide/concepts/model-providers/openai.md b/docs/user-guide/concepts/model-providers/openai.md index c13e096b..aa247803 100644 --- a/docs/user-guide/concepts/model-providers/openai.md +++ b/docs/user-guide/concepts/model-providers/openai.md @@ -15,9 +15,12 @@ OpenAI is configured as an optional dependency in Strands Agents. To install, ru === "TypeScript" ```bash - npm install @strands-agents/sdk + npm install @strands-agents/sdk openai ``` + !!! note "Peer Dependency" + The `openai` package is a required peer dependency. You must install it alongside the SDK to use the OpenAI provider. + ## Usage After installing dependencies, you can import and initialize the Strands Agents' OpenAI provider as follows: From 1c3a79fcf3a898f4f454351588e0f5789f7640e7 Mon Sep 17 00:00:00 2001 From: Patrick Gray Date: Tue, 3 Feb 2026 11:45:12 -0500 Subject: [PATCH 2/2] Apply suggestion from @pgrayy --- docs/user-guide/concepts/model-providers/openai.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/user-guide/concepts/model-providers/openai.md b/docs/user-guide/concepts/model-providers/openai.md index aa247803..4c4996ad 100644 --- a/docs/user-guide/concepts/model-providers/openai.md +++ b/docs/user-guide/concepts/model-providers/openai.md @@ -18,9 +18,6 @@ OpenAI is configured as an optional dependency in Strands Agents. To install, ru npm install @strands-agents/sdk openai ``` - !!! note "Peer Dependency" - The `openai` package is a required peer dependency. You must install it alongside the SDK to use the OpenAI provider. - ## Usage After installing dependencies, you can import and initialize the Strands Agents' OpenAI provider as follows: