Nat TaylorBlog, Product Management & Tinkering

Espanso Match Rule for ollama

Published on . Updated on

This is the espanso match rule for generating a local LLM completion. So you type :llm and it opens a form to enter your prompt.

- trigger: ":llm"
  replace: "{{completion}}"
  vars:
  - name: prompt
    type: form
    params:
      layout: |
        Prompt [[prompt]]
      fields:
        prompt:
          multiline: true
  - name: completion
    type: shell
    params:
      cmd: "ollama run dolphin-phi '{{prompt.prompt}}'"

Popular Posts

Post Navigation

«
»