An open API service indexing awesome lists of open source software.

https://github.com/sammcj/llamanator

AI/LLM middleware between Home Assistant and Ollama
https://github.com/sammcj/llamanator

Last synced: 7 months ago
JSON representation

AI/LLM middleware between Home Assistant and Ollama

Awesome Lists containing this project

README

          

# Llamde

## Template examples

```json
{
"templates": {
"default": "{{.Query}} default template content",
"lighting": "{{.Query}} lighting control template content"
}
}
```

## Home assistant examples

Default template

```yaml
rest_command:
call_default_template:
url: "https://llamanator.local/template/default"
method: POST
headers:
Authorization: "Bearer YOUR_SECRET_TOKEN"
content_type: 'application/json'
payload: '{"query": "Your query here"}'
```

## Curl

```bash
curl -X POST "http://localhost:28080/template/default" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_TOKEN" \
-d '{"query": "tell me a joke"}'
```