chore: simplify model config in non-CUA examples to use string format

Closed
CH
8mo ago
+6-15

Replace model object ({ modelName, apiKey }) with model string in non-CUA examples. API keys are no longer required when using env: "BROWSERBASE" with standard providers (openai/gemini/anthropic).

why

what changed

test plan


Summary by cubic

Simplifies non-CUA examples by switching to the model string format and relying on env: "BROWSERBASE" for API key resolution with standard providers. This removes inline API key handling and reduces boilerplate.

  • Refactors
    • Replaced model object with a model string in examples (e.g., openai/gpt-5, openai/gpt-4o).
    • Set env: "BROWSERBASE" in the parameterized example and removed explicit apiKey; keys resolve automatically for openai/gemini/anthropic.