Feat/stagehand
This pull request introduces several enhancements and fixes across multiple files, focusing on extending functionality for model and environment selection, improving validation, and standardizing configurations. Below are the most important changes grouped by theme:
Feature Enhancements
- Added support for specifying
modelandenvparameters in theStagehandextraction tool. This includes extending therequestSchemainapps/sim/app/api/tools/stagehand/extract/route.tsto validate these new fields and updating thePOSTfunction to handle them appropriately. [1] [2] [3] - Updated the
StagehandBlockconfiguration inapps/sim/blocks/blocks/stagehand.tsto include dropdown options for selecting the environment (browserbaseorlocal) and the model to use for extraction. [1] [2] - Extended
StagehandExtractParamsand related types inapps/sim/tools/stagehand/types.tsto includemodelandenvfields, ensuring type safety for the new parameters.
Validation and Error Handling
- Improved validation for API keys by generalizing the error message to handle non-OpenAI keys and ensuring compatibility with the new
envparameter. - Enhanced environment-specific logic to ensure required variables (
BROWSERBASE_API_KEY,BROWSERBASE_PROJECT_ID) are only checked when theenvis set tobrowserbase.
Configuration and Standardization
- Standardized the formatting of strings in
docker-compose.prod.ymlby replacing single quotes with double quotes for consistency. [1] [2] [3] [4] [5]
These changes collectively improve the flexibility, usability, and maintainability of the codebase while introducing new capabilities for users to configure and execute data extraction tasks.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 30, 2025 7:02pm |
@fahadali503 is attempting to deploy a commit to the Sim Studio Team on Vercel.
A member of the Team first needs to authorize it.