mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
chore: Refactor source assignment in api_answer route
This commit is contained in:
@@ -302,7 +302,7 @@ def api_answer():
|
||||
source = {"active_docs": data_key["source"]}
|
||||
user_api_key = data["api_key"]
|
||||
else:
|
||||
source = {data}
|
||||
source = data
|
||||
user_api_key = None
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user