{"id":20118486,"url":"https://github.com/flowfuse/node-red-function-gpt","last_synced_at":"2025-03-02T19:42:55.840Z","repository":{"id":160354365,"uuid":"630962710","full_name":"FlowFuse/node-red-function-gpt","owner":"FlowFuse","description":"A Node-RED node that adds \"Ask ChatGPT\" option to a duplicate of the built-in function node.","archived":false,"fork":false,"pushed_at":"2024-05-24T10:54:25.000Z","size":72,"stargazers_count":29,"open_issues_count":6,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-24T14:03:01.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlowFuse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-21T15:09:39.000Z","updated_at":"2024-05-24T10:54:26.000Z","dependencies_parsed_at":"2024-10-29T13:01:11.366Z","dependency_job_id":null,"html_url":"https://github.com/FlowFuse/node-red-function-gpt","commit_stats":{"total_commits":26,"total_committers":6,"mean_commits":4.333333333333333,"dds":0.5,"last_synced_commit":"7b0f550e3c27e15324cc03f03800a428b3af36da"},"previous_names":["flowfuse/node-red-function-gpt","flowforge/node-red-function-gpt"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-function-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-function-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-function-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlowFuse%2Fnode-red-function-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlowFuse","download_url":"https://codeload.github.com/FlowFuse/node-red-function-gpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241564446,"owners_count":19982958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T19:11:05.088Z","updated_at":"2025-03-02T19:42:55.818Z","avatar_url":"https://github.com/FlowFuse.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-RED Function Node with integrated ChatGPT\n\nA Node-RED node that adds an \"Ask ChatGPT\" input and button to a duplicate of the built-in function node.\n\n\u003cimg width=\"1728\" alt=\"Screenshot 2023-04-21 at 16 08 47\" src=\"https://user-images.githubusercontent.com/99246719/233671631-fefa36c1-6db4-4392-a057-314c16fd91b7.png\"\u003e\n\n\n## Installation\n\nTo add the node to your own instance of Node-RED:\n\n1. Open the \"Menu\" inside Node-RED\n1. Click \"Manage palette\"\n1. Select the \"Install\" tab\n1. Search \"chatgpt\"\n1. Install the `node-red-function-gpt` node\n\nYou will need a [valid API Key from OpenAI](https://platform.openai.com/account/api-keys)\n\n## How to Use\n\n### Basic Example\n\n\u003cimg width=\"652\" alt=\"Screenshot 2023-05-17 at 12 45 08\" src=\"https://github.com/FlowFuse/node-red-function-gpt/assets/99246719/3684d81a-1591-4fe2-a632-dfa8e3a3af93\"\u003e\n\n1. Add the Function GPT nodes to your editor\n2. Configure your ChatGPT credentials \n3. Deploy your nodes\n4. Open the function-gpt node\n5. Type your prompt into the text input at the bottom of the editor panel and click \"Ask ChatGPT\".\n\n### Inline Prompts\n\nIf you want to inject code into already written content, you can write an inline prompt. These prompts are written as comments, e.g.:\n\n```js\n//$PROMPT: Double the input\n```\nIf you've configured Node-RED to use the \"Monaco\" editor, this will then show an \"Ask ChatGPT\" hyperlink above the inserted comment, that you can click to ask this to ChatGPT.\n\n\u003cimg width=\"266\" alt=\"Screenshot 2023-05-17 at 12 43 51\" src=\"https://github.com/FlowFuse/node-red-function-gpt/assets/99246719/cc16e946-ad78-4f68-99f2-ae35898c55c2\"\u003e\n\nYou can have as many of these within the function node as you like.\n\n## Troubleshooting \n\nAfter adding the node to the palette, you do currently need\nto \"Deploy\", before you can use the integrated ChatGPT prompt.\n\n\n## Copyright\n\nThis code is derived from the [core Node-RED Function node](https://github.com/node-red/node-red/blob/master/packages/node_modules/%40node-red/nodes/core/function/10-function.js) that is copyright OpenJS Foundation and licensed under the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowfuse%2Fnode-red-function-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowfuse%2Fnode-red-function-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowfuse%2Fnode-red-function-gpt/lists"}