mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 23:22:57 +01:00
Bug fix for ad login and updated async functionality on chat completion
This commit is contained in:
parent
46c4a3122b
commit
78d1f0ab52
8 changed files with 93 additions and 109 deletions
|
|
@ -42,19 +42,13 @@ def create_app(root_injector: Injector) -> FastAPI:
|
|||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_credentials=True,
|
||||
allow_origins=["http://localhost:80/", "http://10.1.101.125:80", "http://quickgpt.gibl.com.np:80", "http://127.0.0.1",
|
||||
"http://10.1.101.125", "http://quickgpt.gibl.com.np", "http://localhost:8001", "http://192.168.1.93", "http://192.168.1.93:88",
|
||||
allow_origins=["http://localhost:3000/", "http://10.1.101.125:80", "http://quickgpt.gibl.com.np:80", "http://127.0.0.1",
|
||||
"http://10.1.101.125", "http://quickgpt.gibl.com.np", "http://localhost:8000", "http://192.168.1.93", "http://192.168.1.93:88",
|
||||
"http://192.168.1.98", "http://192.168.1.98:5173", "http://localhost:3000","https://globaldocquery.gibl.com.np/", "http://127.0.0.1/", "http://localhost/",
|
||||
"http://localhost:80", "http://192.168.1.131:80/", "http://192.168.1.131"],
|
||||
"http://localhost:80", "http://192.168.1.131", 'http://192.168.1.131:3000'],
|
||||
allow_methods=["DELETE", "GET", "POST", "PUT", "OPTIONS", "PATCH"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# if settings.ui.enabled:
|
||||
# logger.debug("Importing the UI module")
|
||||
# from private_gpt.ui.admin_ui import PrivateAdminGptUi
|
||||
# admin_ui = root_injector.get(PrivateAdminGptUi)
|
||||
# admin_ui.mount_in_admin_app(app, '/admin')
|
||||
|
||||
|
||||
return app
|
||||
Loading…
Add table
Add a link
Reference in a new issue