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
- Host: GitHub
- URL: https://github.com/sammcj/llamanator
- Owner: sammcj
- Created: 2024-02-29T08:45:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-29T08:54:05.000Z (over 1 year ago)
- Last Synced: 2024-05-15T09:55:05.162Z (over 1 year ago)
- Language: Go
- Size: 5.24 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"}'
```