fegger ccd2c3e0d8 Refactor message handling in chat view and improve API error handling
Simplify message construction and update logic in chat-view.js
Add abort controller support and improve error handling in ollama-client.js
Remove unused sanitizeFilePath function from utils.js
Export LogLevel enum in utils.js
Improve vault indexing to process all batches
2026-05-07 00:06:19 +02:00
```
2026-05-07 00:02:32 +02:00
```
2026-05-06 21:13:59 +02:00

Ollama Chat Plugin for Obsidian

A plugin that integrates Ollama with Obsidian to create a chat interface that can access your vault content.

Features

  • Chat with Ollama models directly in Obsidian
  • Vault context search - the assistant can reference your notes
  • Tool integration - create files based on chat responses
  • Streaming responses
  • Customizable model and URL settings

Installation

  1. Install the plugin via Obsidian's community plugins
  2. Make sure you have Ollama installed and running

Setup

  1. Install Ollama: Follow the instructions at ollama.ai to install Ollama
  2. Start Ollama service: ollama serve
  3. Pull a model: ollama pull llama3 (or any other model you prefer)

Configuration

  1. Open the plugin settings via Obsidian's settings panel
  2. Configure the Ollama URL (default: http://localhost:11434)
  3. Configure the model name (default: llama3)
  4. Restart the plugin if needed

Usage

  1. Click the ribbon icon to open the chat view
  2. Type your message in the input box
  3. Press Enter or click Send to send your message
  4. Click the "New Chat" button to start a fresh conversation

Supported Models

Any model supported by Ollama should work, including:

  • llama3
  • llama2
  • mistral
  • codellama
  • etc.

Development

To build from source:

npm install
npm run build

Troubleshooting

  • Connection issues: Ensure Ollama is running and accessible at the configured URL
  • Model not found: Make sure you've pulled the model (ollama pull <modelname>)
  • Permission issues: Check that your Obsidian vault has proper write permissions

License

MIT

S
Description
No description provided
Readme 7.6 MiB
Languages
JavaScript 59.5%
TypeScript 39.5%
CSS 0.7%
Shell 0.3%