Skip to content

Commit

Permalink
fix: fix the start operator's title of our templates too long and bre…
Browse files Browse the repository at this point in the history
…ak the pipeline (#757)

Because

- fix the start operator's title of our templates too long and break the
pipeline

This commit

- fix the start operator's title of our templates too long and break the
pipeline
  • Loading branch information
EiffelFly authored Nov 30, 2023
1 parent 3f3e5d7 commit 96552d4
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions packages/toolkit/src/view/pipeline-builder/lib/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const templates: PipelineTemplate[] = [
configuration: {
metadata: {
prompts: {
title: "My prompts",
title: "Prompts",
type: "array",
instillFormat: "array:string",
items: {
Expand Down Expand Up @@ -122,7 +122,7 @@ export const templates: PipelineTemplate[] = [
configuration: {
metadata: {
prompts: {
title: "My prompts",
title: "Prompts",
type: "array",
instillFormat: "array:string",
items: {
Expand Down Expand Up @@ -246,7 +246,7 @@ export const templates: PipelineTemplate[] = [
instillFormat: "string",
},
prompts: {
title: "My Prompts",
title: "Prompts",
type: "array",
instillFormat: "array:string",
items: {
Expand Down Expand Up @@ -447,9 +447,11 @@ export const templates: PipelineTemplate[] = [
instillFormat: "string",
},
key_info: {
title: "Key information to extract (separate with commas)",
title: "Key information",
type: "string",
instillFormat: "string",
description:
"Key information to extract (separate with commas)",
},
},
},
Expand Down Expand Up @@ -519,15 +521,17 @@ export const templates: PipelineTemplate[] = [
instillFormat: "string",
},
format: {
title: "Summary format style (sentences or bullets)",
title: "Summary format style",
type: "string",
instillFormat: "string",
description: "sentences or bullets",
},
guideline: {
title:
"Additional guideline for summary. e.g., focus on action points. ",
title: "Guideline",
type: "string",
instillFormat: "string",
description:
"Additional guideline for summary. e.g., focus on action points. ",
},
},
},
Expand Down Expand Up @@ -591,14 +595,18 @@ export const templates: PipelineTemplate[] = [
configuration: {
metadata: {
keywords: {
title: "Generate a article optimized for this SEO Keywords",
title: "Keywords",
type: "string",
instillFormat: "string",
description:
"Generate a article optimized for this SEO Keywords",
},
section_number: {
title: "How many sections would you like? (3-7 recommended)",
title: "Section number",
type: "number",
instillFormat: "number",
description:
"How many sections would you like? (3-7 recommended)",
},
},
},
Expand Down

0 comments on commit 96552d4

Please sign in to comment.