You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Derived from [OpenAI Conversation](https://www.home-assistant.io/integrations/op
13
13
## How it works
14
14
Extended OpenAI Conversation uses OpenAI API's feature of [function calling](https://platform.openai.com/docs/guides/function-calling) to call service of Home Assistant.
15
15
16
-
Since "gpt-3.5-turbo" model already knows how to call service of Home Assistant in general, you just have to let model know what devices you have by [exposing entities](https://github.com/jekalmin/extended_openai_conversation#preparation)
16
+
Since OpenAI models already know how to call service of Home Assistant in general, you just have to let model know what devices you have by [exposing entities](https://github.com/jekalmin/extended_openai_conversation#preparation)
17
17
18
18
## Installation
19
19
1. Install via registering as a custom repository of HACS or by copying `extended_openai_conversation` folder into `<config directory>/custom_components`
@@ -22,7 +22,7 @@ Since "gpt-3.5-turbo" model already knows how to call service of Home Assistant
22
22
4. In the bottom right corner, select the Add Integration button.
23
23
5. Follow the instructions on screen to complete the setup (API Key is required).
24
24
-[Generating an API Key](https://www.home-assistant.io/integrations/openai_conversation/#generate-an-api-key)
25
-
- Specify "Base Url" if using OpenAI compatible servers like LocalAI, otherwise leave as it is.
25
+
- Specify "Base Url" if using OpenAI compatible servers like Azure OpenAI (also with APIM), LocalAI, otherwise leave as it is.
26
26
6. Go to Settings > [Voice Assistants](https://my.home-assistant.io/redirect/voice_assistants/).
27
27
7. Click to edit Assistant (named "Home Assistant" by default).
28
28
8. Select "Extended OpenAI Conversation" from "Conversation agent" tab.
@@ -245,12 +245,14 @@ In order to pass result of calling service to OpenAI, set response variable to `
245
245
function:
246
246
type: script
247
247
sequence:
248
-
- service: calendar.list_events
248
+
- service: calendar.get_events
249
249
data:
250
250
start_date_time: "{{start_date_time}}"
251
251
end_date_time: "{{end_date_time}}"
252
252
target:
253
-
entity_id: calendar.test
253
+
entity_id:
254
+
- calendar.[YourCalendarHere]
255
+
- calendar.[MoreCalendarsArePossible]
254
256
response_variable: _function_result
255
257
```
256
258
@@ -513,7 +515,7 @@ When using [ytube_music_player](https://github.com/KoljaWindeler/ytube_music_pla
513
515
#### 7-1. Let model generate a query
514
516
- Without examples, a query tries to fetch data only from "states" table like below
515
517
> Question: When did bedroom light turn on? <br/>
516
-
Query(generated by gpt-3.5): SELECT * FROM states WHERE entity_id = 'input_boolean.livingroom_light_2' AND state = 'on' ORDER BY last_changed DESC LIMIT 1
518
+
Query(generated by gpt): SELECT * FROM states WHERE entity_id = 'input_boolean.livingroom_light_2' AND state = 'on' ORDER BY last_changed DESC LIMIT 1
517
519
- Since "entity_id" is stored in "states_meta" table, we need to give examples of question and query.
0 commit comments