fixed bug with query
This commit is contained in:
parent
f1afa690c8
commit
d82288279f
2 changed files with 2 additions and 4 deletions
|
@ -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,
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue