Skip to content

Commit

Permalink
[no-issue] change default model (gpt-3.5-turbo-1106 -> gpt-4o-mini)
Browse files Browse the repository at this point in the history
  • Loading branch information
jekalmin authored and jekalmin committed Nov 12, 2024
1 parent 2d56659 commit 94d293f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Derived from [OpenAI Conversation](https://www.home-assistant.io/integrations/op
## How it works
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.

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)
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)

## Installation
1. Install via registering as a custom repository of HACS or by copying `extended_openai_conversation` folder into `<config directory>/custom_components`
Expand Down Expand Up @@ -515,7 +515,7 @@ When using [ytube_music_player](https://github.com/KoljaWindeler/ytube_music_pla
#### 7-1. Let model generate a query
- Without examples, a query tries to fetch data only from "states" table like below
> Question: When did bedroom light turn on? <br/>
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
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
- Since "entity_id" is stored in "states_meta" table, we need to give examples of question and query.
- Not secured, but flexible way

Expand Down
2 changes: 1 addition & 1 deletion custom_components/extended_openai_conversation/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Do not restate or appreciate what user says, rather make a quick inquiry.
"""
CONF_CHAT_MODEL = "chat_model"
DEFAULT_CHAT_MODEL = "gpt-3.5-turbo-1106"
DEFAULT_CHAT_MODEL = "gpt-4o-mini"
CONF_MAX_TOKENS = "max_tokens"
DEFAULT_MAX_TOKENS = 150
CONF_TOP_P = "top_p"
Expand Down

0 comments on commit 94d293f

Please sign in to comment.