From 78bb591bd36bad450339256a0b13a8c88ab9889f Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Fri, 5 Sep 2025 23:08:50 +0800 Subject: [PATCH] Change data type of vector_store to list so that multiple vector stores could be included in the file_search --- config-sample.py | 2 +- create_model_response.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config-sample.py b/config-sample.py index 3ccff8e..cbf4eb3 100644 --- a/config-sample.py +++ b/config-sample.py @@ -1,4 +1,4 @@ base_url = "https://api.openai.com/v1/" secret_key = "YOUR-OPENAI-SECRET-KEY-HERE" -vector_store = "YOUR-VECTOR-STORE-ID-HERE" +vector_store = ["YOUR-VECTOR-STORE-IDs-HERE","SEPARATED-BY-COMMAS"] diff --git a/create_model_response.py b/create_model_response.py index 62220a5..f2be4ad 100644 --- a/create_model_response.py +++ b/create_model_response.py @@ -10,7 +10,7 @@ def create_model_response(conversation,model,message): "model": model, "tools": [ {"type": "web_search"}, - {"type": "file_search", "vector_store_ids" :[vector_store]} + {"type": "file_search", "vector_store_ids" :vector_store} ], "input": message, "conversation": conversation