Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
use the first screenshot for llm thought (#1487)
Shuchang Zheng3cb3a0e7ce76
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsxindex 5daa23895..e90d4bd25 100644--- a/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ObserverThoughtScreenshot.tsx@@ -39,7 +39,8 @@ function ObserverThoughtScreenshot({ observerThoughtId, taskStatus }: Props) {(artifact) => artifact.artifact_type === ArtifactType.LLMScreenshot,);- const screenshot = llmScreenshots?.[0];+ // use the last screenshot as the llmScreenshots are in reverse order+ const screenshot = llmScreenshots?.[llmScreenshots.length - 1];if (isLoading) {return (