mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
Merge pull request #1788 from xinnan-tech/py_intent_fix
fix: delete未定义的方法报错
This commit is contained in:
commit
203ea89c6d
1 changed files with 0 additions and 5 deletions
|
|
@ -79,11 +79,6 @@ async def process_intent_result(conn, intent_result, original_text):
|
||||||
if function_name == "continue_chat":
|
if function_name == "continue_chat":
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if function_name == "play_music":
|
|
||||||
funcItem = conn.func_handler.get_function(function_name)
|
|
||||||
if not funcItem:
|
|
||||||
conn.func_handler.function_registry.register_function("play_music")
|
|
||||||
|
|
||||||
function_args = {}
|
function_args = {}
|
||||||
if "arguments" in intent_data["function_call"]:
|
if "arguments" in intent_data["function_call"]:
|
||||||
function_args = intent_data["function_call"]["arguments"]
|
function_args = intent_data["function_call"]["arguments"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue