Skip to content

Commit

Permalink
Add markdown node as recommended output to gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsoulanille committed Sep 5, 2024
1 parent 94973e8 commit aeb3ad3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions custom_nodes/.changeset/brave-tips-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@visualblocks/gemini': patch
---

Add markdown as a recommended node for gemini output
4 changes: 2 additions & 2 deletions custom_nodes/packages/gemini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"author": "",
"license": "Apache-2.0",
"scripts": {
"build": "tsup src/index.ts --format esm --dts --sourcemap && npm run bundle",
"bundle": "esbuild --bundle src/index.ts --outfile=dist/bundle.js --format=esm --sourcemap",
"build": "tsup src/index.ts --format esm --dts --sourcemap --metafile && npm run bundle",
"bundle": "esbuild --bundle src/index.ts --outfile=dist/bundle.js --format=esm --sourcemap --metafile=dist/bundle-metafile.json",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"lint": "eslint .",
"typecheck": "tsc",
Expand Down
6 changes: 6 additions & 0 deletions custom_nodes/packages/gemini/src/gemini_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ const NODE_SPEC = {
{
name: 'response',
type: DataType.STRING,
recommendedNodes: [
{
nodeSpecId: 'markdown_viewer',
inputId: 'markdownString',
}
],
},
] as const,
} satisfies NodeSpec;
Expand Down

0 comments on commit aeb3ad3

Please sign in to comment.