This is a plugin for Obsidian that allows you to use Ollama within your notes. There are different pre configured promts:
- Summarize selection
- Explain selection
- Expand selection
- Rewrite selection (formal)
- Rewrite selection (casual)
- Rewrite selection (active voice)
- Rewrite selection (bullet points)
- Caption selection
But you can also configure your own prompts, specify their model and temperature. The plugin always passes the prompt and either selected text or full note to Ollama and inserts the result into your note at the cursor position.
This requires a local installation of Ollama which can currently be installed as a MacOS app. By default the plugin will connect to http://localhost:11434
- the port of the MacOS app.
- 把原项目里的 PR 手动合在了一起
- 加了命令的中文提示
- 修改默认模型为
mistral
- 修改默认端口,解决跨域问题。
OLLAMA_ORIGINS=*,app://obsidian.md* OLLAMA_HOST=127.0.0.1:11435 ollama serve