AugustDev / enchanted

Enchanted is iOS and macOS app for chatting with private self hosted language models such as Llama2, Mistral or Vicuna using Ollama.
Apache License 2.0
3.48k stars 206 forks source link

Feature suggestion: Shortcuts action #35

Open avvocati-e-mac opened 7 months ago

avvocati-e-mac commented 7 months ago

It would be useful some minimal action to intrigate with Shortcuts via the app.

AugustDev commented 7 months ago

Can you share some example flows that you would like to use?

avvocati-e-mac commented 7 months ago

Sure!

A minimum of context: I am an Italian lawyer passionate about computer science and Apple tools, I am not a programmer.

I've already created some shortcuts to interact with Ollama's APIs (see the image below). This allows me, for example, to send the PDF text or a web page to the LLM and get a response that then, possibly, can be further passed to another shortcuts.

If Enchanted LLM could donate some similar action to Shortcuts I would avoid the whole problem of managing APIs in Shortcuts and expand what the app can do.  If I understood correctly, it is only possible to use it for chat but not to work on documents or other sources outside the LLM.

Thank you for your availability, love your work!

Filippo

PS the image shows Shortcuts in Italian but Mistral summarized and answered in English and summarize my notes to use Ollama and Mistral via terminal. On 3 marzo 2024 a 02:17:15, Augustinas Malinauskas @.***) scritto:

Can you share some example flows that you would like to use?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

AugustDev commented 7 months ago

Hi @avvocati-e-mac thank you so much for sharing this interesting workflow. It seems the images are missing from the message, it would be great if you can share it.

I think I get the rough idea. Few questions

Best

avvocati-e-mac commented 7 months ago

Sorry @AugustDev , I replied via email 😅

Here is the image (I hope… 🤞🏻)

photo_2024-03-08 07 26 49

For your question:

I rapidly check and via API it's possible to send image in coded in base64 that also Shortcuts can handle link here. I'll try it as soon as I can.

Al the best and thanks for the response!

AugustDev commented 7 months ago

Thank you for the detail explanation @avvocati-e-mac. It should be fairly easy to support and seems like an interesting idea.

Enchanted already supports images for models that allow it (llama and baklava currently).

Let me give it a go next week.

mattfusf commented 5 months ago

I have a similar workflow need, is this still something on the roadmap?