fix: references on shar / api keys

This commit is contained in:
Alex
2024-09-09 20:22:03 +01:00
parent 444d50f751
commit 90f64e2527
2 changed files with 5 additions and 46 deletions

View File

@@ -98,21 +98,6 @@ def get_retriever(source_id: str):
return retriever_name
def get_vectorstore(data):
if "active_docs" in data:
if data["active_docs"].split("/")[0] == "default":
vectorstore = ""
elif data["active_docs"].split("/")[0] == "local":
vectorstore = "indexes/" + data["active_docs"]
else:
vectorstore = "vectors/" + data["active_docs"]
if data["active_docs"] == "default":
vectorstore = ""
else:
vectorstore = ""
vectorstore = os.path.join("application", vectorstore)
return vectorstore
def is_azure_configured():
return settings.OPENAI_API_BASE and settings.OPENAI_API_VERSION and settings.AZURE_DEPLOYMENT_NAME