fixed bug with query

This commit is contained in:
Rudis Muiznieks 2025-04-02 14:51:48 -05:00
parent f1afa690c8
commit d82288279f
Signed by: rudism
GPG key ID: CABF2F86EF7884F9
2 changed files with 2 additions and 4 deletions

View file

@ -35,9 +35,7 @@ class KagiSkill(FallbackSkill):
'Content-type': 'application/json',
'Accept': 'application/json'
}
utterance = message.data.get('utterance').lower()
message = [utterance]
js_data = json.dumps({'query': message})
js_data = json.dumps({'query': message.data.get('utterance')})
read_url = 'https://kagi.com/api/v0/fastgpt'
response = requests.post(read_url,
data=js_data,

View file

@ -4,7 +4,7 @@ import os
from os import walk, path
PYPI_NAME = "skill-ovos-fallback-kagi" # pip install PYPI_NAME
VERSION = "0.0.2"
VERSION = "0.0.3"
URL = f"https://code.sitosis.com/rudism/{PYPI_NAME}"
SKILL_CLAZZ = "KagiSkill" # needs to match __init__.py class name