yzh503_obsidian-aicommander.../README.md

47 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2023-03-10 07:06:28 +00:00
# Obsidian AI Commander Plugin
2023-03-07 06:25:36 +00:00
2023-03-10 07:13:41 +00:00
<a href="https://www.buymeacoffee.com/yzh503" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 150px !important;" ></a>
2023-03-07 06:25:36 +00:00
2023-04-25 07:11:08 +00:00
**AI Commander** is a simple AI connector that helps you write notes with the power of OpenAI (ChatGPT) APIs in conjunction with Bing search engine.
2023-03-10 07:13:41 +00:00
2023-03-18 09:58:31 +00:00
![Demo](demo.gif)
2023-03-14 07:07:23 +00:00
[OpenAI API key](https://platform.openai.com/account/api-keys) is required to use this plugin.
2023-03-07 06:25:36 +00:00
2023-03-14 07:07:23 +00:00
## Current Features
2023-03-07 06:25:36 +00:00
2023-03-10 07:13:41 +00:00
- Generate text from prompt, selected lines or current line.
- Generate image from prompt, selected lines or current line.
2023-03-14 07:07:23 +00:00
- Generate audio transcript from the last audio file above the current line.
2023-03-10 07:13:41 +00:00
- Generate text in conjunction with search engine results. This allows the text model to work with Bing search engine. A [Bing Web Search API](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api) key is required to use this feature.
2023-03-14 07:07:23 +00:00
- Generate text in context of the **PDF** attachment embedded in the note. In this mode, it will not incorporate the search result.
- Use [Prompt Perfect](https://promptperfect.jina.ai/) to automatically improve prompts. Your prompts will be replaced by the improved one.
2023-03-15 00:35:11 +00:00
- Custom prompt commands for selected text and PDF. For example, add a command "Summarise the text" in the plugin settings, and it will appear as a command. **Note that you need to reload the plugin and restart Obsidian to update the command palette**.
2023-03-07 06:25:36 +00:00
2023-03-14 07:07:23 +00:00
## Supported models
2023-03-10 07:13:41 +00:00
2023-03-29 00:42:32 +00:00
- GPT models listed in https://platform.openai.com/docs/models/gpt-4
- Whisper v1
- DALL·E image generation model
2023-03-07 06:25:36 +00:00
2023-03-14 07:07:23 +00:00
## How to use
2023-03-07 06:25:36 +00:00
2023-03-10 07:06:28 +00:00
Call out the command pallette and try the following commands:
2023-03-07 06:25:36 +00:00
2023-03-10 07:06:28 +00:00
- AI Commander: Generate text from prompt
- AI Commander: Generate image from prompt
- AI Commander: Generate text from the current line
- AI Commander: Generate image from the current line
- AI Commander: Generate text from the selected text
- AI Commander: Generate image from the selected text
- AI Commander: Generate a transcript from the above audio
- AI Commander: Generate text from prompt in context of the above PDF
- AI Commander: Generate text from the current line in context of the above PDF
- AI Commander: Generate text from the selected text in context of the above PDF
2023-03-10 07:28:22 +00:00
2023-03-14 07:07:23 +00:00
## Install from Github
2023-03-10 07:28:22 +00:00
2023-03-14 11:04:43 +00:00
1. From the release page, download `manifest.json` and `main.js` to `<vault>/.obsidian/plugins/obsidian-aicommander-plugin`
2023-03-10 07:28:22 +00:00
2. Refresh installed plugins
2023-03-14 07:07:23 +00:00
3. Enable AI Commander