mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-29 11:12:02 +01:00
py
This commit is contained in:
parent
0c102ebb5c
commit
28ad01a51a
@ -6,6 +6,7 @@ from danswer.search.models import RetrievalDetails
|
||||
from danswer.search.models import SavedSearchDocWithContent
|
||||
from ee.danswer.server.query_and_chat.models import DocumentSearchRequest
|
||||
from tests.integration.common_utils.constants import API_SERVER_URL
|
||||
from tests.integration.common_utils.constants import GENERAL_HEADERS
|
||||
from tests.integration.common_utils.test_models import DATestUser
|
||||
|
||||
|
||||
@ -25,7 +26,9 @@ class DocumentSearchManager:
|
||||
result = requests.post(
|
||||
url=f"{API_SERVER_URL}/query/document-search",
|
||||
json=search_request.model_dump(),
|
||||
headers=user_performing_action.headers,
|
||||
headers=user_performing_action.headers
|
||||
if user_performing_action
|
||||
else GENERAL_HEADERS,
|
||||
)
|
||||
result.raise_for_status()
|
||||
result_json = result.json()
|
||||
|
Loading…
x
Reference in New Issue
Block a user