mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-19 21:25:39 +00:00
chore: Refactor source assignment in api_answer route
This commit is contained in:
parent
2790bda1e9
commit
425803a1b6
@ -302,7 +302,7 @@ def api_answer():
|
|||||||
source = {"active_docs": data_key["source"]}
|
source = {"active_docs": data_key["source"]}
|
||||||
user_api_key = data["api_key"]
|
user_api_key = data["api_key"]
|
||||||
else:
|
else:
|
||||||
source = {data}
|
source = data
|
||||||
user_api_key = None
|
user_api_key = None
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user