mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 23:22:57 +01:00
change in cors origin
This commit is contained in:
parent
7d0146321e
commit
a9d35647b6
1 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,8 @@ def create_app(root_injector: Injector) -> FastAPI:
|
|||
async def bind_injector_to_request(request: Request) -> None:
|
||||
request.state.injector = root_injector
|
||||
|
||||
app = FastAPI(dependencies=[Depends(bind_injector_to_request)])
|
||||
# app = FastAPI(dependencies=[Depends(bind_injector_to_request)])
|
||||
app = FastAPI()
|
||||
app.include_router(completions_router)
|
||||
app.include_router(chat_router)
|
||||
app.include_router(chunks_router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue