diff --git a/src/libs/agent-runtime/utils/anthropicHelpers.ts b/src/libs/agent-runtime/utils/anthropicHelpers.ts index 41f8f5abaa94..160dbf7cccc2 100644 --- a/src/libs/agent-runtime/utils/anthropicHelpers.ts +++ b/src/libs/agent-runtime/utils/anthropicHelpers.ts @@ -1,3 +1,4 @@ +import '@anthropic-ai/sdk/shims/web'; import Anthropic from '@anthropic-ai/sdk'; import OpenAI from 'openai'; diff --git a/src/libs/agent-runtime/utils/streams/anthropic.ts b/src/libs/agent-runtime/utils/streams/anthropic.ts index ebdeea557269..349650adc622 100644 --- a/src/libs/agent-runtime/utils/streams/anthropic.ts +++ b/src/libs/agent-runtime/utils/streams/anthropic.ts @@ -1,3 +1,4 @@ +import '@anthropic-ai/sdk/shims/web'; import Anthropic from '@anthropic-ai/sdk'; import type { Stream } from '@anthropic-ai/sdk/streaming';