This pull request includes changes to the backend/danswer/main.py file to add a new API key router and integrate it into the application setup.
API Integration:
backend/danswer/main.py: Imported the api_key_router from danswer.server.api_key.api to include the new API key router.
backend/danswer/main.py: Added api_key_router to the application by including it with the include_router_with_global_prefix_prepended function in the get_application method.
How Has This Been Tested?
This is tested by looking into the changes in the ui
Accepted Risk (provide if relevant)
N/A
Related Issue(s) (provide if relevant)
N/A
Mental Checklist:
All of the automated tests pass
All PR comments are addressed and marked resolved
If there are migrations, they have been rebased to latest main
If there are new dependencies, they are added to the requirements
If there are new environment variables, they are added to all of the deployment methods
If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
Docker images build and basic functionalities work
Author has done a final read through of the PR right before merge
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.
[ ] This PR should be backported (make sure to check that the backport attempt succeeds)
Description
This pull request includes changes to the
backend/danswer/main.py
file to add a new API key router and integrate it into the application setup.API Integration:
backend/danswer/main.py
: Imported theapi_key_router
fromdanswer.server.api_key.api
to include the new API key router.backend/danswer/main.py
: Addedapi_key_router
to the application by including it with theinclude_router_with_global_prefix_prepended
function in theget_application
method.How Has This Been Tested?
This is tested by looking into the changes in the ui
Accepted Risk (provide if relevant)
N/A
Related Issue(s) (provide if relevant)
N/A
Mental Checklist:
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.