An Espanso package that enables users to quickly send prompts to a local (e.g. Ollama or LM Studio) or remote LLM API calls (OpenAI standard) and insert the AI-generated response directly into any text field.
Paste this command in a terminal to install the package
espanso install llm-ask-ai
openai
python-dotenv
requirements.txt
.env
.env
API_KEY
BASE_URL
MODEL
API_KEY=ollama BASE_URL=http://localhost:11434/v1 MODEL=llama3.2
NOTE: don't forget to pull the Ollama model first. In the case above, just issue the command:ollama pull llama3.2
:ask:ai
:ask:ai
Summarize the following text: ...
python
python3
python3
python
python-is-python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
pip install openai python-dotenv
sudo apt install python3-openai python3-dotenv
.env
%CONFIG%/match/packages/llm-ask-ai/.env