Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit d650c52

Browse files
committed
update docs
1 parent 1772be6 commit d650c52

File tree

1 file changed

+14
-43
lines changed

1 file changed

+14
-43
lines changed

docs/content/3.configuration/1.index.md

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ The configuration consists of three environment variables: `LLM`, `EMBEDDINGS`,
5252

5353
```json
5454
{
55-
"namespace": "anthropic",
56-
"name": "claude-3-opus-20240229"
55+
"namespace": "ollama",
56+
"name": "llama3",
57+
// You can also specify base url if not localhost
58+
"baseURL": "http://04c4e5a1-ollama:11434"
5759
}
5860
```
5961
::
@@ -158,47 +160,16 @@ The configuration consists of three environment variables: `LLM`, `EMBEDDINGS`,
158160
::collapsible
159161
The `HOMEASSISTANT` environment variable is used to set the Home Assistant instance that Ava will use. Examples for different providers:
160162

161-
::tabs
162-
::div
163-
---
164-
label: Configuration
165-
---
166-
167-
```json
168-
{
169-
"url": "http://homeassistant.local:8123",
170-
"token": "Your long lived access token",
171-
"disabledEntitiesPrefixes": ["update", "device_tracker"],
172-
// supervisor option used only inside the addon
173-
// by default addon will configure HOMEASSISTANT env
174-
"supervisor": false
175-
}
176-
```
177-
::
178-
179-
::div
180-
---
181-
label: Node.js Example
182-
icon: i-simple-icons-javascript
183-
---
184-
185-
```javascript
186-
const { createServer } = require('http');
187-
188-
createServer((req, res) => {
189-
if (req.url === '/skills/calculator') {
190-
// read body and perform calculation
191-
// result will be returned directly to the user
192-
res.end('2 + 2 = 4');
193-
} else if (req.url === '/skills/wikipedia') {
194-
// read body and perform search
195-
res.end('result here will be returned to Ava to be processed further');
196-
} else {
197-
res.end('Skill not found');
198-
}
199-
}).listen(3000);
200-
```
201-
::
163+
```json
164+
{
165+
"url": "http://homeassistant.local:8123",
166+
"token": "Your long lived access token",
167+
"disabledEntitiesPrefixes": ["update", "device_tracker"],
168+
// supervisor option used only inside the addon
169+
// by default addon will configure HOMEASSISTANT env
170+
"supervisor": false
171+
}
172+
```
202173
::
203174
::
204175

0 commit comments

Comments
 (0)