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:
parent
d09a57062c
commit
78bb591bd3
|
@ -1,4 +1,4 @@
|
||||||
base_url = "https://api.openai.com/v1/"
|
base_url = "https://api.openai.com/v1/"
|
||||||
secret_key = "YOUR-OPENAI-SECRET-KEY-HERE"
|
secret_key = "YOUR-OPENAI-SECRET-KEY-HERE"
|
||||||
vector_store = "YOUR-VECTOR-STORE-ID-HERE"
|
vector_store = ["YOUR-VECTOR-STORE-IDs-HERE","SEPARATED-BY-COMMAS"]
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ def create_model_response(conversation,model,message):
|
||||||
"model": model,
|
"model": model,
|
||||||
"tools": [
|
"tools": [
|
||||||
{"type": "web_search"},
|
{"type": "web_search"},
|
||||||
{"type": "file_search", "vector_store_ids" :[vector_store]}
|
{"type": "file_search", "vector_store_ids" :vector_store}
|
||||||
],
|
],
|
||||||
"input": message,
|
"input": message,
|
||||||
"conversation": conversation
|
"conversation": conversation
|
||||||
|
|
Loading…
Reference in a new issue