Minor fixes

This commit is contained in:
Fabio Manganiello 2024-06-03 16:43:36 +02:00
parent 9ce776edfa
commit 3b7bdda990

View file

@ -803,6 +803,7 @@ def ai_assist(event: SpeechRecognizedEvent):
hooks = ( hooks = (
(re.compile(r"play (the)?music", re.IGNORECASE), play_music), (re.compile(r"play (the)?music", re.IGNORECASE), play_music),
(re.compile(r"stop (the)?music", re.IGNORECASE), stop_music), (re.compile(r"stop (the)?music", re.IGNORECASE), stop_music),
# ...
# Fallback to the AI assistant # Fallback to the AI assistant
(re.compile(r".*"), ai_assist), (re.compile(r".*"), ai_assist),
) )
@ -1037,8 +1038,8 @@ This means two things:
initialize the assistant with some predefined knowledge in the form of initialize the assistant with some predefined knowledge in the form of
hypothetical past conversations. Example: hypothetical past conversations. Example:
```yaml ```yaml
openai: openai:
... ...
context: context:
@ -1061,7 +1062,7 @@ This means two things:
otherworldly beings. It is said that the first telephone was otherworldly beings. It is said that the first telephone was
created by the Great Old Ones themselves, and that it is a created by the Great Old Ones themselves, and that it is a
gateway to the void beyond the stars. gateway to the void beyond the stars.
``` ```
If you now start Platypush and ask a question like "*how does it work?*", If you now start Platypush and ask a question like "*how does it work?*",
the voice assistant may give a response along the lines of: the voice assistant may give a response along the lines of: