mirror of
https://github.com/langgenius/dify.git
synced 2026-01-08 07:14:14 +00:00
fix: hit-test failed when attachment id is not exist (#29563)
This commit is contained in:
@@ -178,8 +178,8 @@ class HitTestingService:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def hit_testing_args_check(cls, args):
|
def hit_testing_args_check(cls, args):
|
||||||
query = args["query"]
|
query = args.get("query")
|
||||||
attachment_ids = args["attachment_ids"]
|
attachment_ids = args.get("attachment_ids")
|
||||||
|
|
||||||
if not attachment_ids and not query:
|
if not attachment_ids and not query:
|
||||||
raise ValueError("Query or attachment_ids is required")
|
raise ValueError("Query or attachment_ids is required")
|
||||||
|
|||||||
Reference in New Issue
Block a user