Change data type of vector_store to list so that multiple vector stores could be included in the file_search

This commit is contained in:
Enrique Barcelli 2025-09-05 23:08:50 +08:00
parent d09a57062c
commit 78bb591bd3
Signed by: kikobar
GPG key ID: 006C13A68E25D3B7
2 changed files with 2 additions and 2 deletions

View file

@ -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"]

View file

@ -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