|
@@ -87,17 +87,23 @@ class ThreadRunner:
|
|
)
|
|
)
|
|
|
|
|
|
asst_ids = []
|
|
asst_ids = []
|
|
|
|
+ ids = []
|
|
if ast.tool_resources and "file_search" in ast.tool_resources:
|
|
if ast.tool_resources and "file_search" in ast.tool_resources:
|
|
- asst_ids += (
|
|
|
|
|
|
+
|
|
|
|
+ ids = (
|
|
ast.tool_resources.get("file_search")
|
|
ast.tool_resources.get("file_search")
|
|
.get("vector_stores")[0]
|
|
.get("vector_stores")[0]
|
|
.get("folder_ids")
|
|
.get("folder_ids")
|
|
)
|
|
)
|
|
- asst_ids += (
|
|
|
|
|
|
+ if ids:
|
|
|
|
+ asst_ids += ids
|
|
|
|
+ ids = (
|
|
ast.tool_resources.get("file_search")
|
|
ast.tool_resources.get("file_search")
|
|
.get("vector_stores")[0]
|
|
.get("vector_stores")[0]
|
|
.get("file_ids")
|
|
.get("file_ids")
|
|
)
|
|
)
|
|
|
|
+ if ids:
|
|
|
|
+ asst_ids += ids
|
|
|
|
|
|
if len(asst_ids) > 0:
|
|
if len(asst_ids) > 0:
|
|
if len(run.file_ids) > 0:
|
|
if len(run.file_ids) > 0:
|