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-aiopenaipython-dotenvrequirements.txt.env.envAPI_KEYBASE_URLMODELAPI_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: ...
pythonpython3python3pythonpython-is-python3sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
pip install openai python-dotenvsudo apt install python3-openai python3-dotenv.env%CONFIG%/match/packages/llm-ask-ai/.env