Skip to content

Fails to run with only ANTHROPIC_API_KEY #3

@leachuk

Description

@leachuk

Expected:
From the README I'm expecting to only require either the ANTHROPIC or OPENAI api key Export credentials for the chosen backend (e.g. OPENAI_API_KEY or ANTHROPIC_API_KEY), then: to run this project.

Actual
When running with only the ANTHROPIC_API_KEY I get an error in the outputs/default/demo_claude_/logs/step_0008.log

...
  File "~/projects/personal/webwright/Webwright/src/webwright/tools/image_qa.py", line 66, in _openai_config
    raise RuntimeError("Missing OPENAI_API_KEY.")
RuntimeError: Missing OPENAI_API_KEY.

Also, in the src/configs/base.yaml file i see the OPENAI_API_KEY is always required.

# Required env (provided by ~/cred.sh):
#   - OPENAI_API_KEY    (always — used by self_reflection and image_qa tools)
#   - ANTHROPIC_API_KEY (only when stacking model_claude.yaml)
#   - BROWSERBASE_API_KEY + BROWSERBASE_PROJECT_ID (only when browser_mode=browserbase)

Ideally I should not require a subscription to 2 AI providers. Please enable this to work with an ANTHROPIC api key only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions