Reduce the intent response data sent to LLMs (#118346)
* Reduce the intent response data sent to LLMs * No longer delete speechpull/118348/head^2
parent
fa9ebb062c
commit
d22871f1fd
|
@ -195,7 +195,10 @@ class IntentTool(Tool):
|
|||
assistant=tool_context.assistant,
|
||||
device_id=tool_context.device_id,
|
||||
)
|
||||
return intent_response.as_dict()
|
||||
response = intent_response.as_dict()
|
||||
del response["language"]
|
||||
del response["card"]
|
||||
return response
|
||||
|
||||
|
||||
class AssistAPI(API):
|
||||
|
|
|
@ -165,13 +165,11 @@ async def test_assist_api(
|
|||
device_id="test_device",
|
||||
)
|
||||
assert response == {
|
||||
"card": {},
|
||||
"data": {
|
||||
"failed": [],
|
||||
"success": [],
|
||||
"targets": [],
|
||||
},
|
||||
"language": "*",
|
||||
"response_type": "action_done",
|
||||
"speech": {},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue