fix time pronunciation in spoken responses

changed prompt instruction to use natural spoken format for times instead of numeric format, preventing LLM from saying "three thousand thirty-four" instead of "three thirty-four"
This commit is contained in:
Your Name 2025-12-20 17:45:08 -06:00
parent 97abaabea2
commit 0760f8ca67
2 changed files with 2 additions and 2 deletions

View file

@ -406,7 +406,7 @@ class GroqdConversationEntity(
formatted_time = now.strftime("%-I:%M %p") formatted_time = now.strftime("%-I:%M %p")
prompt_parts.append( prompt_parts.append(
f"Current local time: {formatted_time}. " f"Current local time: {formatted_time}. "
"Always express time exactly in this numeric format; do not spell out numbers." "When reading times aloud, use natural spoken format (e.g., 'three thirty-four' not 'three thousand thirty-four')."
) )
if options.get(CONF_AUTO_FETCH_URLS, DEFAULT_AUTO_FETCH_URLS): if options.get(CONF_AUTO_FETCH_URLS, DEFAULT_AUTO_FETCH_URLS):

View file

@ -1,7 +1,7 @@
{ {
"domain": "groqd", "domain": "groqd",
"name": "groqd", "name": "groqd",
"version": "0.1.0", "version": "0.1.1",
"config_flow": true, "config_flow": true,
"documentation": "https://github.com/sudoxreboot/groqd", "documentation": "https://github.com/sudoxreboot/groqd",
"issue_tracker": "https://github.com/sudoxreboot/groqd/issues", "issue_tracker": "https://github.com/sudoxreboot/groqd/issues",