Skip to content

Commit a96e3da

Browse files
authored
Merge pull request #83 from pufflyai/82-update-instruction-node
update instruction node
2 parents 3779b03 + cc0aa62 commit a96e3da

File tree

15 files changed

+1209
-79
lines changed

15 files changed

+1209
-79
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "0.19.14"
3+
"version": "0.20.0"
44
}

packages/@pufflig/ps-chains/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pufflig/ps-chains",
3-
"version": "0.19.14",
3+
"version": "0.20.0",
44
"license": "MIT",
55
"main": "./dist/ps-chains.umd.js",
66
"module": "./dist/ps-chains.es.js",
@@ -16,7 +16,7 @@
1616
"test": "jest"
1717
},
1818
"devDependencies": {
19-
"@pufflig/ps-types": "^0.19.14",
19+
"@pufflig/ps-types": "^0.20.0",
2020
"@types/react-dom": "^18.2.7",
2121
"immer": "^10.0.2",
2222
"prop-types": "^15.8.1",

packages/@pufflig/ps-models/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pufflig/ps-models",
33
"private": false,
4-
"version": "0.19.14",
4+
"version": "0.20.0",
55
"description": "Configuration of models used in Prompt Studio",
66
"files": [
77
"dist"
@@ -16,7 +16,7 @@
1616
"author": "Pufflig AB",
1717
"license": "MIT",
1818
"devDependencies": {
19-
"@pufflig/ps-types": "^0.19.14",
19+
"@pufflig/ps-types": "^0.20.0",
2020
"typescript": "^5.1.6",
2121
"vite": "^4.3.9",
2222
"vite-plugin-dts": "^2.3.0"

packages/@pufflig/ps-nodes-config/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pufflig/ps-nodes-config",
33
"private": false,
4-
"version": "0.19.14",
4+
"version": "0.20.0",
55
"description": "Configuration files for nodes used in prompt studio.",
66
"files": [
77
"dist"
@@ -16,10 +16,10 @@
1616
"author": "Pufflig AB",
1717
"license": "MIT",
1818
"dependencies": {
19-
"@pufflig/ps-models": "^0.19.14"
19+
"@pufflig/ps-models": "^0.20.0"
2020
},
2121
"devDependencies": {
22-
"@pufflig/ps-types": "^0.19.14",
22+
"@pufflig/ps-types": "^0.20.0",
2323
"@types/jest": "^29.5.1",
2424
"jest": "^29.5.0",
2525
"ts-jest": "^29.1.0",

packages/@pufflig/ps-nodes-config/src/adapters/llm/llm_completion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { NodeConfig } from "@pufflig/ps-types";
44
export const llmCompletionNodeType = "adapter/llm_completion" as const;
55

66
export const llmCompletionConfig: NodeConfig = {
7-
name: "LLM (Completion)",
8-
description: "Given a prompt and a model to call, this node will generate a completion.",
7+
name: "Instruction",
8+
description: "Generate a completion using an LLM.",
99
status: "experimental",
1010
tags: ["adapter", "text"],
1111
globals: [],

packages/@pufflig/ps-nodes-config/src/adapters/openai/openai_embedding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const openaiEmbeddingNodeType = "adapter/openai_embedding" as const;
66
export const openaiEmbeddingConfig: NodeConfig = {
77
name: "OpenAI (Embedding)",
88
description: "OpenAI Embedding",
9-
status: "stable",
9+
status: "deprecated",
1010
tags: ["adapter", "embedding"],
1111
globals: [OPENAI_API_KEY],
1212
execution: {

packages/@pufflig/ps-nodes-config/src/data/prompt/prompt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export const promptNodeType = "data/prompt" as const;
44

55
export const prompt: NodeConfig = {
66
name: "Prompt",
7-
description: "Write a prompt with variables",
8-
tags: ["data", "text"],
9-
status: "experimental",
7+
description: "A prompt with variables.",
8+
tags: ["data", "text", "prompt"],
9+
status: "stable",
1010
outputs: [
1111
{
1212
id: "prompt",
@@ -20,7 +20,7 @@ export const prompt: NodeConfig = {
2020
{
2121
id: "template",
2222
name: "Template",
23-
description: "Template to fill in",
23+
description: "Prompt Template to fill in",
2424
type: "text",
2525
defaultValue: "",
2626
},

packages/@pufflig/ps-nodes-config/src/data/text/text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { NodeConfig } from "@pufflig/ps-types";
33
export const textNodeType = "data/text" as const;
44

55
export const text: NodeConfig = {
6-
name: "Text",
7-
description: "Can be used to store text, e.g. from a prompt or a file.",
6+
name: "File",
7+
description: "Can be used to store text.",
88
tags: ["data", "text"],
99
status: "stable",
1010
outputs: [

packages/@pufflig/ps-nodes-config/src/modifiers/template/template_text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const templateText: NodeConfig = {
66
name: "Text Template",
77
description: "Using this template, you can insert variables into text.",
88
tags: ["modifier", "text"],
9-
status: "stable",
9+
status: "deprecated",
1010
outputs: [
1111
{
1212
id: "text",

packages/@pufflig/ps-nodes/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pufflig/ps-nodes",
33
"private": false,
4-
"version": "0.19.14",
4+
"version": "0.20.0",
55
"description": "Collection of nodes used in Prompt Studio",
66
"files": [
77
"dist"
@@ -17,7 +17,7 @@
1717
"author": "Pufflig AB",
1818
"license": "MIT",
1919
"devDependencies": {
20-
"@pufflig/ps-types": "^0.19.14",
20+
"@pufflig/ps-types": "^0.20.0",
2121
"@types/jest": "^29.5.1",
2222
"@types/lodash": "^4.14.196",
2323
"@types/mustache": "^4.2.2",
@@ -33,9 +33,9 @@
3333
},
3434
"dependencies": {
3535
"@dqbd/tiktoken": "^1.0.7",
36-
"@pufflig/ps-models": "^0.19.14",
37-
"@pufflig/ps-nodes-config": "^0.19.14",
38-
"@pufflig/ps-sdk": "^0.19.14",
36+
"@pufflig/ps-models": "^0.20.0",
37+
"@pufflig/ps-nodes-config": "^0.20.0",
38+
"@pufflig/ps-sdk": "^0.20.0",
3939
"axios": "^1.5.0",
4040
"langchain": "^0.0.160",
4141
"lodash": "^4.17.21",

0 commit comments

Comments
 (0)