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

handle case where we don't get title suggested from LLM #726

Merged
merged 1 commit into from
Aug 25, 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
8 changes: 4 additions & 4 deletions skyvern-frontend/src/routes/tasks/create/TaskTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function createTemplateTaskFromTaskGenerationParameters(
values: TaskGenerationApiResponse,
) {
return {
title: values.suggested_title ?? "Untitled",
title: values.suggested_title ?? "Untitled Task",
description: "",
is_saved_task: true,
webhook_callback_url: null,
Expand All @@ -84,7 +84,7 @@ function createTemplateTaskFromTaskGenerationParameters(
blocks: [
{
block_type: "task",
label: values.suggested_title,
label: values.suggested_title ?? "Untitled Task",
url: values.url,
navigation_goal: values.navigation_goal,
data_extraction_goal: values.data_extraction_goal,
Expand Down Expand Up @@ -153,7 +153,7 @@ function TaskTemplates() {
onError: (error: AxiosError) => {
toast({
variant: "destructive",
title: "Error creating task from prompt",
title: "Error saving task",
description: error.message,
});
},
Expand All @@ -174,7 +174,7 @@ function TaskTemplates() {
onError: (error: AxiosError) => {
toast({
variant: "destructive",
title: "Error creating task from prompt",
title: "Error running task",
description: error.message,
});
},
Expand Down
Loading