mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-09 20:55:06 +02:00
py
This commit is contained in:
@@ -6,6 +6,7 @@ from danswer.search.models import RetrievalDetails
|
|||||||
from danswer.search.models import SavedSearchDocWithContent
|
from danswer.search.models import SavedSearchDocWithContent
|
||||||
from ee.danswer.server.query_and_chat.models import DocumentSearchRequest
|
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 API_SERVER_URL
|
||||||
|
from tests.integration.common_utils.constants import GENERAL_HEADERS
|
||||||
from tests.integration.common_utils.test_models import DATestUser
|
from tests.integration.common_utils.test_models import DATestUser
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +26,9 @@ class DocumentSearchManager:
|
|||||||
result = requests.post(
|
result = requests.post(
|
||||||
url=f"{API_SERVER_URL}/query/document-search",
|
url=f"{API_SERVER_URL}/query/document-search",
|
||||||
json=search_request.model_dump(),
|
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.raise_for_status()
|
||||||
result_json = result.json()
|
result_json = result.json()
|
||||||
|
Reference in New Issue
Block a user