logancyang / obsidian-copilot

THE Copilot in Obsidian
https://www.obsidiancopilot.com/
GNU Affero General Public License v3.0
3.13k stars 222 forks source link

Copilot - open API access via javascript #86

Open dxcore35 opened 1 year ago

dxcore35 commented 1 year ago

Please allow the usage of the plugin from javascript only. You will open whole new world for Templater user. And based on my research non of ChatGPT plugins in Obsidian plugin catalogue has access thru API.

https://forum.obsidian.md/t/templater-js-chatgpt/61755

Please! 🙏🏻

logancyang commented 1 year ago

Hmm, I'm not quite sure what that looks like yet. Can you give some concrete examples?

From that link, I see the example use case is to generate YAML from note content. That can actually be done by using a custom prompt you can define today. Custom prompts are powerful, it just needs the user to provide good examples!

I'm going to post custom prompt tips and tricks regularly on twitter and my youtube channel.

dxcore35 commented 1 year ago

All these examples are done directly in note content. Meaning user don't need to delete original text, move some block of texts generated by CHATGPT, nor copy paste from Copilot.

dxcore35 commented 1 year ago

@logancyang Hello is there any tutorial how to create these custom templates?

demsullivan commented 1 year ago

+1 for this feature here. I'd love the ability to interact with this plugin via a Javascript API.

My use case is that I primarily use Obsidian as a periodic note journal. I have a weekly note, and I'd be interested in running all of my daily notes through GPT to generate a summary for the week. Then again at the monthly and quarterly level.

Unless there is a way in this plugin to send multiple notes a context to GPT? I couldn't find it :D