Skip to content

Commit

Permalink
Change default option for observer (#1411)
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammed Salih Altun <[email protected]>
  • Loading branch information
wintonzheng and msalihaltun authored Dec 17, 2024
1 parent 7ac0d3d commit 5e80b90
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions skyvern-frontend/src/routes/tasks/create/PromptBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ const exampleCases = [
function PromptBox() {
const navigate = useNavigate();
const [prompt, setPrompt] = useState<string>("");
const [selectValue, setSelectValue] = useState(
observerFeatureEnabled ? "v2" : "v1",
);
const [selectValue, setSelectValue] = useState("v1");
const credentialGetter = useCredentialGetter();
const queryClient = useQueryClient();

Expand Down Expand Up @@ -241,23 +239,23 @@ function PromptBox() {
<SelectValue />
</SelectTrigger>
<SelectContent className="border-slate-500 bg-slate-elevation3">
<CustomSelectItem value="v2" className="hover:bg-slate-800">
<CustomSelectItem value="v1">
<div className="space-y-2">
<div>
<SelectItemText>Skyvern 2.0 (Observer)</SelectItemText>
<SelectItemText>Skyvern 1.0 (Tasks)</SelectItemText>
</div>
<div className="text-xs text-slate-400">
best for complex tasks
best for simple tasks
</div>
</div>
</CustomSelectItem>
<CustomSelectItem value="v1">
<CustomSelectItem value="v2" className="hover:bg-slate-800">
<div className="space-y-2">
<div>
<SelectItemText>Skyvern 1.0 (Tasks)</SelectItemText>
<SelectItemText>Skyvern 2.0 (Observer)</SelectItemText>
</div>
<div className="text-xs text-slate-400">
best for simple tasks
best for complex tasks
</div>
</div>
</CustomSelectItem>
Expand Down

0 comments on commit 5e80b90

Please sign in to comment.