Skip to content

lmm214/obsidian-ollama

 
 

Repository files navigation

🦙 Obsidian Ollama

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:https://localhost:11434 - the port of the MacOS app.

DIY

  • 把原项目里的 PR 手动合在了一起
  • 加了命令的中文提示
  • 修改默认模型为 mistral
  • 修改默认端口,解决跨域问题。

使用命令

OLLAMA_ORIGINS=*,app:https://obsidian.md* OLLAMA_HOST=127.0.0.1:11435 ollama serve

iShot_2023-12-16_22 25 17-zipic

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 90.5%
  • JavaScript 8.6%
  • CSS 0.9%