fix: load sources on shared conversations

This commit is contained in:
ManishMadan2882
2024-09-11 17:55:31 +05:30
parent 14ab950a6c
commit 919a87bf47
5 changed files with 52 additions and 3 deletions

View File

@@ -429,7 +429,7 @@ def api_search():
data_key = get_data_from_api_key(data["api_key"])
chunks = int(data_key["chunks"])
source = {"active_docs":data_key["source"]}
user_api_key = data_key["api_key"]
user_api_key = data["api_key"]
elif "active_docs" in data:
source = {"active_docs":data["active_docs"]}
user_api_key = None