outputing response to logs

This commit is contained in:
Rudis Muiznieks 2025-04-02 14:39:58 -05:00
parent fb49fe3643
commit 0f15715e26
Signed by: rudism
GPG key ID: CABF2F86EF7884F9

View file

@ -43,8 +43,9 @@ class KagiSkill(FallbackSkill):
data=js_data,
headers=header_content,
verify=False)
self.log.error(f'received: {response.text}')
json_data = json.loads(response.text)
dirty_response = json_data["data"]["output"];
dirty_response = json_data["data"]["output"]
# TODO: remove [n] reference tokens
self.speak(dirty_response)
return True