Repository navigation
fix: support component brwoser - #16848
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughBrowser extraction now reads ChangesBrowser extraction resolution
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Browser
participant TenantModel
participant TenantLLM
participant Stagehand
Browser->>TenantModel: Resolve tenant model configuration
TenantModel-->>Browser: Provider, model, credentials, base URL
Browser->>TenantLLM: Fallback legacy tenant_llm resolution
TenantLLM-->>Browser: Legacy model configuration
Browser->>Stagehand: Run extraction with normalized model options
Stagehand-->>Browser: Result or contextual error
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/agent/component/browser.go`:
- Around line 439-446: Update the doc comment above resolveBrowserLLM to remove
the migration/compatibility explanation about older DSLs, tenant_llm, and
fallback lookup; retain only concise documentation of the current runtime
behavior and relevant test override details.
- Around line 299-302: Update the output map’s `"prompt"` value in the browser
component to use the resolved `prompts` variable instead of `b.param.Prompts`,
so it reflects any non-empty `inputs["prompts"]` override while preserving the
configured default otherwise.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9cb15faa-bdf8-40be-96f4-499ca29ed554
📒 Files selected for processing (4)
internal/agent/component/browser.gointernal/agent/component/browser_test.gointernal/agent/component/stagehand_runtime.gointernal/agent/component/stagehand_runtime_test.go
Summary
As title
Unable to test it since I don't have apiKey for
openai,AnthropicandGemini