Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default option for observer #1411

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading