mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-08 05:14:02 -05:00
chore: localize new dataset piles
Co-authored-by: acon96 <35843486+acon96@users.noreply.github.com>
This commit is contained in:
@@ -561,7 +561,7 @@ def generate_tool_failure_example(failure_case: dict, persona: str, language: st
|
||||
response_confirmed = response_confirmed.replace("<device_name>", friendly_name)
|
||||
|
||||
tool_args_extra = {}
|
||||
if "climate" in service_action:
|
||||
if device_type == "climate":
|
||||
if "<temp_f>" in question or "<temp_f>" in response_starting or "<temp_f>" in response_confirmed:
|
||||
temp_f = generate_random_parameter("temp_f", piles)
|
||||
question = question.replace("<temp_f>", str(temp_f))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
|
||||
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
|
||||
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
|
||||
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
|
||||
light.turn_on,light.living_room_lamp,Lampe du salon,light.livng_room_lamp,"Veuillez allumer la <device_name>.","Erreur : entité light.livng_room_lamp introuvable.","Je vais essayer la lampe du salon à la place."
|
||||
climate.set_temperature,climate.hallway,Thermostat du couloir,climate.halway,"Règle la <device_name> à <temp_f> degrés.","Erreur : entité climate.halway introuvable.","Nouvelle tentative avec le thermostat du couloir."
|
||||
fan.turn_off,fan.office,Ventilateur du bureau,fan.offce,"Éteins le <device_name>.","Erreur : entité fan.offce introuvable.","Je vais réessayer avec le ventilateur du bureau."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
|
||||
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
|
||||
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
|
||||
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
|
||||
not_available,lock.lock,back_door,Serrure de la porte arrière,,"Verrouille la <device_name>.","Je ne trouve pas de serrure de porte arrière à contrôler."
|
||||
already_state,light.turn_on,hallway,Lumières du couloir,on,"Allume les <device_name>.","Les lumières du couloir sont déjà allumées."
|
||||
already_state,switch.turn_off,garage,Prise du garage,off,"Éteins la <device_name>.","La prise du garage est déjà éteinte."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
|
||||
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
|
||||
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
|
||||
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
|
||||
light.turn_on,light.living_room_lamp,Wohnzimmerlampe,light.livng_room_lamp,"Bitte schalte die <device_name> ein.","Fehler: Entität light.livng_room_lamp nicht gefunden.","Ich versuche stattdessen die Wohnzimmerlampe."
|
||||
climate.set_temperature,climate.hallway,Flurthermostat,climate.halway,"Stelle den <device_name> auf <temp_f> Grad ein.","Fehler: Entität climate.halway nicht gefunden.","Versuche es erneut mit dem Flurthermostat."
|
||||
fan.turn_off,fan.office,Büroventilator,fan.offce,"Schalte den <device_name> aus.","Fehler: Entität fan.offce nicht gefunden.","Ich versuche den Büroventilator erneut."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
|
||||
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
|
||||
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
|
||||
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
|
||||
not_available,lock.lock,back_door,Schloss an der Hintertür,,"Schließe <device_name> ab.","Ich kann kein Schloss an der Hintertür finden."
|
||||
already_state,light.turn_on,hallway,Flurlichter,on,"Schalte die <device_name> ein.","Die Flurlichter sind bereits an."
|
||||
already_state,switch.turn_off,garage,Steckdose in der Garage,off,"Schalte die <device_name> aus.","Die Steckdose in der Garage ist bereits aus."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
|
||||
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
|
||||
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
|
||||
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
|
||||
light.turn_on,light.living_room_lamp,Lampa w salonie,light.livng_room_lamp,"Proszę włącz <device_name>.","Błąd: encja light.livng_room_lamp nie została znaleziona.","Spróbuję zamiast tego lampy w salonie."
|
||||
climate.set_temperature,climate.hallway,Termostat w korytarzu,climate.halway,"Ustaw <device_name> na <temp_f> stopni.","Błąd: encja climate.halway nie została znaleziona.","Ponawiam z termostatem w korytarzu."
|
||||
fan.turn_off,fan.office,Wentylator w biurze,fan.offce,"Wyłącz <device_name>.","Błąd: encja fan.offce nie została znaleziona.","Spróbuję ponownie z wentylatorem w biurze."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
|
||||
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
|
||||
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
|
||||
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
|
||||
not_available,lock.lock,back_door,Zamek tylnych drzwi,,"Zablokuj <device_name>.","Nie mogę znaleźć zamka tylnych drzwi do sterowania."
|
||||
already_state,light.turn_on,hallway,Światła w korytarzu,on,"Włącz <device_name>.","Światła w korytarzu są już włączone."
|
||||
already_state,switch.turn_off,garage,Gniazdko w garażu,off,"Wyłącz <device_name>.","Gniazdko w garażu jest już wyłączone."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
|
||||
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
|
||||
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
|
||||
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
|
||||
light.turn_on,light.living_room_lamp,Lámpara de la sala,light.livng_room_lamp,"Por favor enciende la <device_name>.","Error: Entidad light.livng_room_lamp no encontrada.","Intentaré con la lámpara de la sala."
|
||||
climate.set_temperature,climate.hallway,Termostato del pasillo,climate.halway,"Configura el <device_name> a <temp_f> grados.","Error: Entidad climate.halway no encontrada.","Probando de nuevo con el termostato del pasillo."
|
||||
fan.turn_off,fan.office,Ventilador de la oficina,fan.offce,"Apaga el <device_name>.","Error: Entidad fan.offce no encontrada.","Volveré a intentar con el ventilador de la oficina."
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
|
||||
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
|
||||
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
|
||||
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
|
||||
not_available,lock.lock,back_door,Cerrojo de la puerta trasera,,"Cierra con llave el <device_name>.","No encuentro un cerrojo de la puerta trasera para controlar."
|
||||
already_state,light.turn_on,hallway,Luces del pasillo,on,"Enciende las <device_name>.","Las luces del pasillo ya están encendidas."
|
||||
already_state,switch.turn_off,garage,Enchufe del garaje,off,"Apaga el <device_name>.","El enchufe del garaje ya está apagado."
|
||||
|
||||
|
Reference in New Issue
Block a user