Skip to content

Commit

Permalink
reverted Display Text node and added Display Text as Markdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
shhlife committed Feb 28, 2025
1 parent 2a11d50 commit a331966
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security -->

## [2.2.12] - 2025-01-03
### Added
- Added `Griptape Display: Text as Markdown` node.
### Changed
- Reverted the `Griptape Display: Text` node back to just displaying text.

![Display Text and Markdown Images](docs/images/display_text_and_display_markdown.png)

## [2.2.11] - 2025-28-02
### Added
- Added `min_p` and/or `top_k` to prompt drivers that support them.
Expand Down
2 changes: 2 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
from .nodes.display.gtUIOutputDataNode import gtUIOutputDataNode
from .nodes.display.gtUIOutputDictionaryNode import gtUIOutputDictionaryNode
from .nodes.display.gtUIOutputImageNode import gtUIOutputImageNode
from .nodes.display.gtUIOutputMarkdownNode import gtUIOutputMarkdownNode
from .nodes.display.gtUIOutputStringNode import gtUIOutputStringNode

# DRIVERS
Expand Down Expand Up @@ -465,6 +466,7 @@
# DISPLAY
"Griptape Display: Image": gtUIOutputImageNode,
"Griptape Display: Text": gtUIOutputStringNode,
"Griptape Display: Text as Markdown": gtUIOutputMarkdownNode,
"Griptape Display: Data as Text": gtUIOutputDataNode,
"Griptape Display: Dictionary": gtUIOutputDictionaryNode,
# AUDIO
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion js/DisplayNodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { formatAndDisplayJSON } from "./gtUIUtils.js";
export function setupDisplayNodes(nodeType, nodeData, app) {
if (nodeData.name === "Griptape Display: Artifact") {
setupArtifactDisplayNode(nodeType, nodeData, app);
} else if (nodeData.name === "Griptape Display: Text") {
} else if (
nodeData.name === "Griptape Display: Text" ||
nodeData.name === "Griptape Display: Text as Markdown"
) {
setupTextDisplayNode(nodeType, nodeData, app);
} else if (nodeData.name === "Griptape Display: Data as Text") {
setupDataAsTextDisplayNode(nodeType, nodeData, app);
Expand Down
12 changes: 12 additions & 0 deletions nodes/display/gtUIOutputMarkdownNode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .gtUIOutputStringNode import gtUIOutputStringNode


class gtUIOutputMarkdownNode(gtUIOutputStringNode):
NAME = "Griptape Display: Text as Markdown"
DESCRIPTION = "Display string output as Markdown"

@classmethod
def INPUT_TYPES(cls):
inputs = super().INPUT_TYPES()
inputs["optional"]["STRING"] = ("MARKDOWN", {"multiline": True})
return inputs
2 changes: 1 addition & 1 deletion nodes/display/gtUIOutputStringNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def INPUT_TYPES(cls):
"required": {},
"optional": {
"INPUT": ("STRING", {"forceInput": True, "multiline": True}),
"STRING": ("MARKDOWN", {"multiline": True}),
"STRING": ("STRING", {"multiline": True}),
},
}

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "comfyui-griptape"
version = "2.2.11"
version = "2.2.12"
description = "Griptape LLM(Large Language Model) Nodes for ComfyUI."
authors = ["Jason Schleifer <jason.schleifer@gmail.com>"]
readme = "README.md"
Expand All @@ -9,7 +9,7 @@ readme = "README.md"
[project]
name = "comfyui-griptape"
description = "Griptape LLM(Large Language Model) Nodes for ComfyUI."
version = "2.2.11"
version = "2.2.12"
license = {file = "LICENSE"}
dependencies = ["attrs>=24.3.0,<26.0.0", "openai>=1.58.1,<2.0.0", "griptape[all]>=1.4.0", "python-dotenv", "poetry==1.8.5", "griptape-black-forest @ git+https://github.com/griptape-ai/griptape-black-forest.git", "griptape_serper_driver_extension @ git+https://github.com/mertdeveci5/griptape-serper-driver-extension.git"]

Expand Down

0 comments on commit a331966

Please sign in to comment.