Skip to content

Can't use AWS Bedrock custom Llm on BROWSERBASE Env #899

@ulwiisibaq

Description

@ulwiisibaq

Hi, I seems to always failed using stagehand with bedrock on BrowserBase env, the stagehand init would always expect to pass apiKey, even though we're using bedrock custom llm client.

is not supported yet to use bedrock on browserbase env? or is there any flag for it to skip the api key validation?
using LOCAL env, it works fine.

below are the sample of our constructor (the commented one are our trial with dummy api key)

  const stagehand = new Stagehand({
    ...StagehandConfig,
    // modelName: "aisdk",
    // modelClientOptions: {
    //   apiKey: "test",
    // },
    llmClient: new AISdkClient({
      model: bedrock("anthropic.claude-3-5-sonnet-20240620-v1:0"),
    }),
  });

error: "StagehandAPIError: modelApiKey is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions