Skip to content

Commit

Permalink
Remove legacy /api/prompt/text endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Aug 15, 2024
1 parent 6d83dde commit 0280dfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 425 deletions.
289 changes: 0 additions & 289 deletions api/prompt/text.ts

This file was deleted.

20 changes: 0 additions & 20 deletions app/src/lib/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,31 @@ export type PromptType = "knowledge" | "flowchart";
type Template = {
key: string;
title: () => string;
promptType: PromptType;
accentClasses?: string[];
};

export const templates: Template[] = [
{
key: "default",
title: () => `Default`,
promptType: "flowchart",
},
{
key: "flowchart",
title: () => `Flowchart`,
promptType: "flowchart",
accentClasses: ["color_blue", "color_green"],
},
{
key: "org-chart",
title: () => t`Organization Chart`,
promptType: "flowchart",
accentClasses: ["color_blue", "color_orange"],
},
{
key: "code-flow",
title: () => t`Process Diagram`,
promptType: "flowchart",
accentClasses: ["color_blue", "color_green", "color_purple"],
},
{
key: "mindmap",
title: () => `Mind Map`,
promptType: "knowledge",
accentClasses: ["size_lg", "color_blue", "color_green", "color_orange"],
},
{
key: "knowledge-graph",
title: () => t`Knowledge Graph`,
promptType: "knowledge",
accentClasses: [
"color_blue",
"color_green",
"color_orange",
"color_purple",
"color_grey",
"border_dashed",
],
},
];
Loading

0 comments on commit 0280dfe

Please sign in to comment.