diff --git a/plugins/tiddlywiki/ai-tools/docs.tid b/plugins/tiddlywiki/ai-tools/docs.tid index a000cf905..4e8d21d27 100644 --- a/plugins/tiddlywiki/ai-tools/docs.tid +++ b/plugins/tiddlywiki/ai-tools/docs.tid @@ -14,16 +14,9 @@ See the ''settings'' tab for set up instructions. #* If using ~OpenAI it is possible to attach a single image to a prompt # Click "Send" and wait for the output of the LLM -!! Import ~ChatGPT Conversation Archives +!! Use utility -# [[Follow the instructions|https://help.openai.com/en/articles/7260999-how-do-i-export-my-chatgpt-history-and-data]] to request an export of your ~ChatGPT data -# You will receive a link to download your data as a ZIP file -# Download and unzip the file -# Locate the file `conversations.json` within the archive and import it into your TiddlyWiki -# Visit the ''tools'' tab and locate your `conversations.json` tiddler -# Click the associated ''import'' button -# See the imported conversations listed in the ''tools'' tab -# The imported tiddler `conversations.json` is no longer required and can be deleted +For example, to import ~ChatGPT conversation archives, follow the instructions in the [[utilities tab|$:/plugins/tiddlywiki/ai-tools/utilities]]. !! Conversation Format diff --git a/plugins/tiddlywiki/ai-tools/plugin.info b/plugins/tiddlywiki/ai-tools/plugin.info index 0adbf73c2..27bac169c 100644 --- a/plugins/tiddlywiki/ai-tools/plugin.info +++ b/plugins/tiddlywiki/ai-tools/plugin.info @@ -2,6 +2,6 @@ "title": "$:/plugins/tiddlywiki/ai-tools", "name": "AI Tools", "description": "AI Tools for TiddlyWiki", - "list": "readme docs tools settings tree", + "list": "readme docs utilities settings tree", "stability": "STABILITY_1_EXPERIMENTAL" } diff --git a/plugins/tiddlywiki/ai-tools/settings/llamafile.tid b/plugins/tiddlywiki/ai-tools/settings/llamafile.tid new file mode 100644 index 000000000..783b5826f --- /dev/null +++ b/plugins/tiddlywiki/ai-tools/settings/llamafile.tid @@ -0,0 +1,11 @@ +title: $:/plugins/tiddlywiki/ai-tools/settings/llamafile +tags: $:/tags/AI/Setting +caption: Llamafile + +!! Llamafile Setup + +[[Llamafile|https://github.com/Mozilla-Ocho/llamafile]] lets you download and run LLMs as a single file. See the [[announcement blog post|https://hacks.mozilla.org/2023/11/introducing-llamafile/]] for background. + +# Download and run Llamafile as [[described in the QuickStart guide|https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart]] +# Visit http://127.0.0.1:8080 in a browser and verify that you can see the Llamafile interface. You can also try it out here +# Return to AI Tools and start a conversation, specifying Llamafile as the server \ No newline at end of file diff --git a/plugins/tiddlywiki/ai-tools/settings.tid b/plugins/tiddlywiki/ai-tools/settings/openai.tid similarity index 52% rename from plugins/tiddlywiki/ai-tools/settings.tid rename to plugins/tiddlywiki/ai-tools/settings/openai.tid index 8f2567560..2c54d4f42 100644 --- a/plugins/tiddlywiki/ai-tools/settings.tid +++ b/plugins/tiddlywiki/ai-tools/settings/openai.tid @@ -1,6 +1,6 @@ -title: $:/plugins/tiddlywiki/ai-tools/settings - -! AI Tools Settings +title: $:/plugins/tiddlywiki/ai-tools/settings/openai +tags: $:/tags/AI/Setting +caption: OpenAI !! ~OpenAI API key @@ -12,12 +12,4 @@ This plugin runs entirely in the browser, with no backend server component. A co # Visit https://platform.openai.com/api-keys to create a new secret API key # Copy and paste the value into the box below -~OpenAI Secret API Key: <$password name="openai-secret-key"/> - -!! Llamafile Setup - -[[Llamafile|https://github.com/Mozilla-Ocho/llamafile]] lets you download and run LLMs as a single file. See the [[announcment blog post|https://hacks.mozilla.org/2023/11/introducing-llamafile/]] for background. - -# Download and run Llamafile as [[described in the QuickStart guide|https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#quickstart]] -# Visit http://127.0.0.1:8080 in a browser and verify that you can see the Llamafile interface. You can also try it out here -# Return to AI Tools and start a conversation, specifying Llamafile as the server +~OpenAI Secret API Key: <$password name="openai-secret-key"/> \ No newline at end of file diff --git a/plugins/tiddlywiki/ai-tools/settings/settings.tid b/plugins/tiddlywiki/ai-tools/settings/settings.tid new file mode 100644 index 000000000..07df6f5d8 --- /dev/null +++ b/plugins/tiddlywiki/ai-tools/settings/settings.tid @@ -0,0 +1,5 @@ +title: $:/plugins/tiddlywiki/ai-tools/settings + +These settings let you customise the behaviour of the "AI Tools" plugin. + +<> \ No newline at end of file diff --git a/plugins/tiddlywiki/ai-tools/tools.tid b/plugins/tiddlywiki/ai-tools/utilities/openai.tid similarity index 58% rename from plugins/tiddlywiki/ai-tools/tools.tid rename to plugins/tiddlywiki/ai-tools/utilities/openai.tid index f1bd9ee49..7573c55ba 100644 --- a/plugins/tiddlywiki/ai-tools/tools.tid +++ b/plugins/tiddlywiki/ai-tools/utilities/openai.tid @@ -1,12 +1,21 @@ -title: $:/plugins/tiddlywiki/ai-tools/tools - -! Import ~ChatGPT Export Archive +title: $$:/plugins/tiddlywiki/ai-tools/utilities/openai +tags: $:/tags/AI/Utility +caption: Import ChatGPT Export Archive These instructions allow you to import the conversations from a ~ChatGPT export archive. +# [[Follow the instructions|https://help.openai.com/en/articles/7260999-how-do-i-export-my-chatgpt-history-and-data]] to request an export of your ~ChatGPT data +# You will receive a link to download your data as a ZIP file +# Download and unzip the file +# Locate the file `conversations.json` within the archive and import it into your TiddlyWiki +# Visit the ''tools'' tab and locate your `conversations.json` tiddler +# Click the associated ''import'' button +# See the imported conversations listed in the ''tools'' tab +# The imported tiddler `conversations.json` is no longer required and can be deleted + !! 1- Request your archive -Visit the ~ChatGPT site to request your achive. You will be sent an email with a link to a ZIP file. Download the file and locate the file `conversations.json` within it. +Visit the ~ChatGPT site to request your archive. You will be sent an email with a link to a ZIP file. Download the file and locate the file `conversations.json` within it. !! 2 - Import `conversations.json` as a tiddler diff --git a/plugins/tiddlywiki/ai-tools/utilities/utilities.tid b/plugins/tiddlywiki/ai-tools/utilities/utilities.tid new file mode 100644 index 000000000..5a6c9a6c8 --- /dev/null +++ b/plugins/tiddlywiki/ai-tools/utilities/utilities.tid @@ -0,0 +1,3 @@ +title: $:/plugins/tiddlywiki/ai-tools/utilities + +<>