Skip to content

Instantly share code, notes, and snippets.

View snake-dev-ops-001's full-sized avatar
🏠
Working from home

snake-dev-ops-001

🏠
Working from home
View GitHub Profile
@snake-dev-ops-001
snake-dev-ops-001 / ollama-light-assistant.py
Created May 17, 2025 11:04 — forked from ShawnHymel/ollama-light-assistant.py
Ollama Tool (Function Calling) Example on Raspberry Pi 5
"""
Ollama Light Assistant
Test the ability for LLMs to call tools (i.e. functions) from within the Ollama
environment on a Raspberry Pi with speech-to-text. Tested with a Raspberry Pi 5
(8 GB) and this USB microphone: https://www.adafruit.com/product/3367.
Connect an LED to GPIO 17 (physical pin 11 on the board) in an active high
configuration: