Open BillRaymond opened 6 months ago
Hi @BillRaymond have you tried out the custom actions/scripts functionality for this? https://frontmatter.codes/docs/custom-actions
You can use it to run a script for the current file and update your page's front matter. Here you can find an example: https://frontmatter.codes/docs/custom-actions#updating-the-front-matter-of-your-content
Is your feature request related to a problem? Please describe. I use Front Matter to post my podcasts. Each podcast post contains a transcript. Each transcript requires a summary.
I want to put a summary at the top of the page to share the podcast with my listeners. To do that, I have to leave FM, go to Ollama locally, OpenAI, or Claude, and then copy/paste the summary into Front Matter.
Describe the solution you'd like Provide a facility within Front Matter to (a) use a local model with Ollama or (b) a web-based API solution using a product like OpenAI's ChatGPT. I would imagine a flow like this:
summarize this using the following format...
Describe alternatives you've considered Right now, I am doing a dance where I have to go to one AI system, upload the transcript, wait for the AI to read and understand the transcript, and then provide a summarization prompt. Once I receive the prompt, I copy that text and paste it into Front Matter.
Additional context While this might sound like an easy exercise, I must leave and return to Front Matter a lot. If I am uploading a podcast, I have to go to my podcast provider, get the link to the show, and then return to FM to paste it. I then have to go through the same process of getting the YouTube link, the guest's LinkedIn profile, book links, etc. The less I have to go back and forth with FM, the better.
Here is a link to a podcast episode.
Here is a sample prompt I might create: