rizerphe / obsidian-companion

Autocomplete your obsidian notes with AI, including ChatGPT, through a copilot-like interface.
MIT License
232 stars 27 forks source link

How to select which characters are sent to the API ? #10

Open laurentbarbier opened 1 year ago

laurentbarbier commented 1 year ago

Hello and thanks again for the great work,

Is the whole file, the whole last paragraph, the whole last sentence transmitted to ChatGPT to generate the completion ? Would it be possible to select what is sent to the API by selecting it, using another way ?

Best regards

rizerphe commented 1 year ago

Thank you! For now, it sends the whole file up to your cursor. I do plan to make it more flexible and customizable in the future, though. One of the main reasons for why I should is that sometimes the whole file is too much for the language model - completions might stop working entirely at the bottom of a long note, for example.