add engine to more blocks (#2457)
This commit is contained in:
31
skyvern-frontend/src/components/EngineSelector.tsx
Normal file
31
skyvern-frontend/src/components/EngineSelector.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { RunEngine } from "@/api/types";
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from "./ui/select";
|
||||
|
||||
type Props = {
|
||||
value: RunEngine | null;
|
||||
onChange: (value: RunEngine) => void;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
function RunEngineSelector({ value, onChange, className }: Props) {
|
||||
return (
|
||||
<Select value={value ?? RunEngine.SkyvernV1} onValueChange={onChange}>
|
||||
<SelectTrigger className={className}>
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value={RunEngine.SkyvernV1}>Skyvern 1.0</SelectItem>
|
||||
<SelectItem value={RunEngine.OpenaiCua}>OpenAI CUA</SelectItem>
|
||||
<SelectItem value={RunEngine.AnthropicCua}>Anthropic CUA</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
);
|
||||
}
|
||||
|
||||
export { RunEngineSelector };
|
||||
Reference in New Issue
Block a user