Skip to content

MiracleXYZ/logseq-chatgpt-plugin

 
 

Repository files navigation

Logseq ChatGPT Plugin

A ChatGPT plugin powered by Langchain.js for Logseq.

Features

  • 🚀 In-build powerful prompts
    The plugin comes packed with several powerful prompts:
  • 🚀 Custom Prompts
    The plugin provides GUI for custom prompt creation. The custom prompts can use langchain.js tools like Web Browser, Zapier, and even external custom API Endpoints 😲.

    Please read Custom Prompt Editor Tutorial and Custom API Tool for Custom Prompts Tutorial for documentation on this.

    Additionally, you can find importable user-made Custom Prompts on the Github - ChatGPT Plugin Custom Prompt Discussion.
  • 📚 ChatGPT Page Management
  • 📥 Commands and Shortcuts
    The plugin has the following Do What I Mean (DWIM) commands:
    • Ask ChatGPT - This will call chatgpt API when currently inside ChatGPT page. Otherwise, it open up the AI prompt palette for creating new chatgpt page.
    • Create ChatGPT page - It open up the AI prompt palette for creating new chatgpt page.
    • Show ChatGPT Page List - Opens the ChatGPT Page list dialog.
    • Edit ChatGPT Custom Prompts - Opens the Edit ChatGPT Custom Prompts Dialog.

    By default, there are following keyboard shortcuts for the above commands:
    • cmd/ctrl+shift+/ - Ask ChatGPT
    • cmd/ctrl+shift+l - Show ChatGPT Page List
    The above shortcuts can be changed from settings.
  • 🐾 Support for Logseq Syntax
    The plugin is built with Logseq in mind. It parses the block refs and block embeds before sending request to ChatGPT. This means you can use block refs and embeds anywhere in your conversation. Support for page embeds will be coming soon.
    Additionally, the plugin sanitizes ChatGPT result using mldocs so that logseq supports rendering the output.

Installation

  1. Install Logseq ChatGPT Plugin from Marketplace.
    • Go to > Settings > Features and enable Plugins.
    • Now, go to > Plugin > Marketplace and find Logseq ChatGPT Plugin and click install
  2. Get and Setup OpenAI API Key.
    • OpenAI gives away free credits for ChatGPT that can last for up to 120 days. Get an OpenAI API Key here.
    • Go to Logseq ChatGPT Plugin Settings and enter the API key there.
  3. Have fun!

🙏 Support

Loved the tool? Please consider donating to help continue development!

Buy Me A Coffee

About

A tightly integrated ChatGPT plugin for Logseq.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.7%
  • HTML 0.3%