khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

Fix markdownRenderer arg to allow chat responses in Obsidian plugin #619

Closed debanjum closed 8 months ago

debanjum commented 8 months ago

Issue

Users with Dataview plugin would have error as its markdown post-processor expects the sourcePath to be a string

This prevents Khoj from responding to chat messages in the Obsidian chat modal. Search via Obsidian still works but it throws the same dataview plugin error

Fix

Pass a string as sourcePath to markdownRenderer to fix failing chat response and stop throwing dataview errors on search

Resolves #614, Resolves #606