Skip to content

Commit

Permalink
fix: changes get started templates image, adds set color index to eve…
Browse files Browse the repository at this point in the history
…ry starter template (#4569)

* Updated image to show entire grid

* Changed swatch index to use id

* Updated swatch index to not have negative numbers

* Updated starter examples to have the gradients already defined

* Make forked flow have the same color as the template
  • Loading branch information
lucaseduoli authored Nov 13, 2024
1 parent 3a73e01 commit 563b90e
Show file tree
Hide file tree
Showing 25 changed files with 1,261 additions and 3,950 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@
"dataType": "Prompt",
"id": "Prompt-euzzD",
"name": "prompt",
"output_types": [
"Message"
]
"output_types": ["Message"]
},
"targetHandle": {
"fieldName": "system_message",
"id": "OpenAIModel-mMCO4",
"inputTypes": [
"Message"
],
"inputTypes": ["Message"],
"type": "str"
}
},
Expand All @@ -36,16 +32,12 @@
"dataType": "ChatInput",
"id": "ChatInput-M2ktx",
"name": "message",
"output_types": [
"Message"
]
"output_types": ["Message"]
},
"targetHandle": {
"fieldName": "input_value",
"id": "OpenAIModel-mMCO4",
"inputTypes": [
"Message"
],
"inputTypes": ["Message"],
"type": "str"
}
},
Expand All @@ -62,16 +54,12 @@
"dataType": "OpenAIModel",
"id": "OpenAIModel-mMCO4",
"name": "text_output",
"output_types": [
"Message"
]
"output_types": ["Message"]
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-1s4P8",
"inputTypes": [
"Message"
],
"inputTypes": ["Message"],
"type": "str"
}
},
Expand All @@ -89,9 +77,7 @@
"display_name": "Chat Input",
"id": "ChatInput-M2ktx",
"node": {
"base_classes": [
"Message"
],
"base_classes": ["Message"],
"beta": false,
"conditional_paths": [],
"custom_fields": {},
Expand Down Expand Up @@ -120,9 +106,7 @@
"method": "message_response",
"name": "message",
"selected": "Message",
"types": [
"Message"
],
"types": ["Message"],
"value": "__UNDEFINED__"
}
],
Expand All @@ -135,9 +119,7 @@
"display_name": "Background Color",
"dynamic": false,
"info": "The background color of the icon.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "background_color",
Expand All @@ -156,9 +138,7 @@
"display_name": "Icon",
"dynamic": false,
"info": "The icon of the message.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "chat_icon",
Expand Down Expand Up @@ -235,9 +215,7 @@
"display_name": "Text",
"dynamic": false,
"info": "Message to be passed as input.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"multiline": true,
Expand All @@ -257,10 +235,7 @@
"dynamic": false,
"info": "Type of sender.",
"name": "sender",
"options": [
"Machine",
"User"
],
"options": ["Machine", "User"],
"placeholder": "",
"required": false,
"show": true,
Expand All @@ -274,9 +249,7 @@
"display_name": "Sender Name",
"dynamic": false,
"info": "Name of the sender.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "sender_name",
Expand All @@ -294,9 +267,7 @@
"display_name": "Session ID",
"dynamic": false,
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "session_id",
Expand Down Expand Up @@ -331,9 +302,7 @@
"display_name": "Text Color",
"dynamic": false,
"info": "The text color of the name",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "text_color",
Expand Down Expand Up @@ -371,9 +340,7 @@
"display_name": "Prompt",
"id": "Prompt-euzzD",
"node": {
"base_classes": [
"Message"
],
"base_classes": ["Message"],
"beta": false,
"conditional_paths": [],
"custom_fields": {
Expand All @@ -383,9 +350,7 @@
"display_name": "Prompt",
"documentation": "",
"edited": false,
"field_order": [
"template"
],
"field_order": ["template"],
"frozen": false,
"icon": "prompts",
"legacy": false,
Expand All @@ -398,9 +363,7 @@
"method": "build_prompt",
"name": "prompt",
"selected": "Message",
"types": [
"Message"
],
"types": ["Message"],
"value": "__UNDEFINED__"
}
],
Expand Down Expand Up @@ -501,10 +464,7 @@
"display_name": "OpenAI",
"id": "OpenAIModel-mMCO4",
"node": {
"base_classes": [
"LanguageModel",
"Message"
],
"base_classes": ["LanguageModel", "Message"],
"beta": false,
"conditional_paths": [],
"custom_fields": {},
Expand Down Expand Up @@ -540,9 +500,7 @@
"name": "text_output",
"required_inputs": [],
"selected": "Message",
"types": [
"Message"
],
"types": ["Message"],
"value": "__UNDEFINED__"
},
{
Expand All @@ -552,9 +510,7 @@
"name": "model_output",
"required_inputs": [],
"selected": "LanguageModel",
"types": [
"LanguageModel"
],
"types": ["LanguageModel"],
"value": "__UNDEFINED__"
}
],
Expand All @@ -567,9 +523,7 @@
"display_name": "OpenAI API Key",
"dynamic": false,
"info": "The OpenAI API Key to use for the OpenAI model.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"load_from_db": true,
"name": "api_key",
"password": true,
Expand Down Expand Up @@ -604,9 +558,7 @@
"display_name": "Input",
"dynamic": false,
"info": "",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "input_value",
Expand Down Expand Up @@ -722,9 +674,7 @@
"display_name": "Output Parser",
"dynamic": false,
"info": "The parser to use to parse the output of the model",
"input_types": [
"OutputParser"
],
"input_types": ["OutputParser"],
"list": false,
"name": "output_parser",
"placeholder": "",
Expand Down Expand Up @@ -789,9 +739,7 @@
"display_name": "System Message",
"dynamic": false,
"info": "System message to pass to the model.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "system_message",
Expand Down Expand Up @@ -845,9 +793,7 @@
"data": {
"id": "ChatOutput-1s4P8",
"node": {
"base_classes": [
"Message"
],
"base_classes": ["Message"],
"beta": false,
"conditional_paths": [],
"custom_fields": {},
Expand Down Expand Up @@ -878,9 +824,7 @@
"method": "message_response",
"name": "message",
"selected": "Message",
"types": [
"Message"
],
"types": ["Message"],
"value": "__UNDEFINED__"
}
],
Expand All @@ -893,9 +837,7 @@
"display_name": "Background Color",
"dynamic": false,
"info": "The background color of the icon.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "background_color",
Expand All @@ -915,9 +857,7 @@
"display_name": "Icon",
"dynamic": false,
"info": "The icon of the message.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "chat_icon",
Expand Down Expand Up @@ -955,9 +895,7 @@
"display_name": "Data Template",
"dynamic": false,
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "data_template",
Expand All @@ -977,9 +915,7 @@
"display_name": "Text",
"dynamic": false,
"info": "Message to be passed as output.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "input_value",
Expand All @@ -1000,10 +936,7 @@
"dynamic": false,
"info": "Type of sender.",
"name": "sender",
"options": [
"Machine",
"User"
],
"options": ["Machine", "User"],
"placeholder": "",
"required": false,
"show": true,
Expand All @@ -1019,9 +952,7 @@
"display_name": "Sender Name",
"dynamic": false,
"info": "Name of the sender.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "sender_name",
Expand All @@ -1041,9 +972,7 @@
"display_name": "Session ID",
"dynamic": false,
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "session_id",
Expand Down Expand Up @@ -1079,9 +1008,7 @@
"display_name": "Text Color",
"dynamic": false,
"info": "The text color of the name",
"input_types": [
"Message"
],
"input_types": ["Message"],
"list": false,
"load_from_db": false,
"name": "text_color",
Expand Down Expand Up @@ -1126,10 +1053,9 @@
"endpoint_name": null,
"icon": "Braces",
"id": "1511c230-d446-43a7-bfc3-539e69ce05b8",
"gradient": "2",
"is_component": false,
"last_tested_version": "1.0.19.post2",
"name": "Basic Prompting",
"tags": [
"chatbots"
]
}
"tags": ["chatbots"]
}
Loading

0 comments on commit 563b90e

Please sign in to comment.