chore: cleanup comments
This commit is contained in:
@@ -234,7 +234,6 @@ const RobotCreate: React.FC = () => {
|
|||||||
<Typography variant="body2" color="text.secondary" mb={3}>
|
<Typography variant="body2" color="text.secondary" mb={3}>
|
||||||
Extract structured data from websites using AI or record your own extraction workflow.
|
Extract structured data from websites using AI or record your own extraction workflow.
|
||||||
</Typography>
|
</Typography>
|
||||||
{/* Website URL */}
|
|
||||||
<Box sx={{ width: '100%', maxWidth: 700, mb: 3 }}>
|
<Box sx={{ width: '100%', maxWidth: 700, mb: 3 }}>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Example: https://www.ycombinator.com/companies/"
|
placeholder="Example: https://www.ycombinator.com/companies/"
|
||||||
@@ -246,7 +245,6 @@ const RobotCreate: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Generation Mode Selection */}
|
|
||||||
<Box sx={{ width: '100%', maxWidth: 700, mb: 3 }}>
|
<Box sx={{ width: '100%', maxWidth: 700, mb: 3 }}>
|
||||||
<Typography variant="subtitle1" gutterBottom sx={{ fontWeight: 600, mb: 2 }}>
|
<Typography variant="subtitle1" gutterBottom sx={{ fontWeight: 600, mb: 2 }}>
|
||||||
Generation Mode
|
Generation Mode
|
||||||
@@ -302,10 +300,8 @@ const RobotCreate: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Conditional rendering based on generation mode */}
|
|
||||||
{generationMode === 'agent' && (
|
{generationMode === 'agent' && (
|
||||||
<Box sx={{ width: '100%', maxWidth: 700 }}>
|
<Box sx={{ width: '100%', maxWidth: 700 }}>
|
||||||
{/* Robot Name */}
|
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3 }}>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Robot Name"
|
placeholder="Robot Name"
|
||||||
@@ -317,7 +313,6 @@ const RobotCreate: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Extraction Prompt */}
|
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3 }}>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Example: Extract first 15 company names, descriptions, and batch information"
|
placeholder="Example: Extract first 15 company names, descriptions, and batch information"
|
||||||
@@ -331,7 +326,6 @@ const RobotCreate: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* LLM Provider and Model */}
|
|
||||||
<Box sx={{ display: 'flex', gap: 2, mb: 3 }}>
|
<Box sx={{ display: 'flex', gap: 2, mb: 3 }}>
|
||||||
<FormControl sx={{ flex: 1 }}>
|
<FormControl sx={{ flex: 1 }}>
|
||||||
<InputLabel>LLM Provider</InputLabel>
|
<InputLabel>LLM Provider</InputLabel>
|
||||||
@@ -402,7 +396,6 @@ const RobotCreate: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Ollama Base URL */}
|
|
||||||
{llmProvider === 'ollama' && (
|
{llmProvider === 'ollama' && (
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3 }}>
|
||||||
<TextField
|
<TextField
|
||||||
@@ -416,7 +409,6 @@ const RobotCreate: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Create & Run Button */}
|
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|||||||
Reference in New Issue
Block a user