This is custom component of Home Assistant.
Derived from MistralAI Conversation.
- Install via HACS or by copying
MistralAI Conversationfolder into<config directory>/custom_components - Restart Home Assistant
- Go to Settings > Devices & Services.
- In the bottom right corner, select the Add Integration button.
- Follow the instructions on screen to complete the setup (API Key is required).
- Generating an API Key
- Specify "Base Url" if using MistralAI compatible servers like LocalAI, otherwise leave as it is.
- Go to Settings > Voice Assistants.
- Click to edit Assistant (named "Home Assistant" by default).
- Select "MistralAI Conversation" from "Conversation agent" tab.
After installed, you need to expose entities from "http://{your-home-assistant}/config/voice-assistants/expose".
By clicking a button from Edit Assist, Options can be customized.
Options include OpenAI Conversation options and one new options.
Attach Username: Pass the active user's name (if applicable) to MistralAI via the message payload. Currently, this only applies to conversations through the UI or REST API.
In order to monitor logs of API requests and responses, add following config to configuration.yaml file
logger:
logs:
custom_components.extended_openai_conversation: info- Add function calling when MistralAI's API support it (do it like https://github.com/jekalmin/extended_openai_conversation)