Skip to content

Commit

Permalink
update instruction node
Browse files Browse the repository at this point in the history
  • Loading branch information
au-re committed Oct 30, 2023
1 parent 3779b03 commit 3ff7227
Show file tree
Hide file tree
Showing 7 changed files with 1,142 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { NodeConfig } from "@pufflig/ps-types";
export const llmCompletionNodeType = "adapter/llm_completion" as const;

export const llmCompletionConfig: NodeConfig = {
name: "LLM (Completion)",
description: "Given a prompt and a model to call, this node will generate a completion.",
name: "Instruction",
description: "Generate a completion using an LLM.",
status: "experimental",
tags: ["adapter", "text"],
globals: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const openaiEmbeddingNodeType = "adapter/openai_embedding" as const;
export const openaiEmbeddingConfig: NodeConfig = {
name: "OpenAI (Embedding)",
description: "OpenAI Embedding",
status: "stable",
status: "deprecated",
tags: ["adapter", "embedding"],
globals: [OPENAI_API_KEY],
execution: {
Expand Down
8 changes: 4 additions & 4 deletions packages/@pufflig/ps-nodes-config/src/data/prompt/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export const promptNodeType = "data/prompt" as const;

export const prompt: NodeConfig = {
name: "Prompt",
description: "Write a prompt with variables",
tags: ["data", "text"],
status: "experimental",
description: "A prompt with variables.",
tags: ["data", "text", "prompt"],
status: "stable",
outputs: [
{
id: "prompt",
Expand All @@ -20,7 +20,7 @@ export const prompt: NodeConfig = {
{
id: "template",
name: "Template",
description: "Template to fill in",
description: "Prompt Template to fill in",
type: "text",
defaultValue: "",
},
Expand Down
4 changes: 2 additions & 2 deletions packages/@pufflig/ps-nodes-config/src/data/text/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { NodeConfig } from "@pufflig/ps-types";
export const textNodeType = "data/text" as const;

export const text: NodeConfig = {
name: "Text",
description: "Can be used to store text, e.g. from a prompt or a file.",
name: "File",
description: "Can be used to store text.",
tags: ["data", "text"],
status: "stable",
outputs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const templateText: NodeConfig = {
name: "Text Template",
description: "Using this template, you can insert variables into text.",
tags: ["modifier", "text"],
status: "stable",
status: "deprecated",
outputs: [
{
id: "text",
Expand Down
Loading

0 comments on commit 3ff7227

Please sign in to comment.