Skip to content

Commit 936a1a4

Browse files
authored
Merge branch 'main' into feat/ui/iframe-frontend-routing-sync
2 parents 7b75420 + 444090a commit 936a1a4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ex_app/lib/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def enabled_callback(enabled: bool, nc: typing.Annotated[NextcloudApp, Depends(n
143143

144144

145145
async def proxy_request_to_service(request: Request, path: str, path_prefix: str = ""):
146-
async with httpx.AsyncClient() as client:
146+
# Creating a task can take a long time if using local LLM(ollama), so set the timeout to 10 minutes.
147+
async with httpx.AsyncClient(timeout=600.0) as client:
147148
url = f"{SERVICE_URL}{path_prefix}{path}" if path.startswith("/") else f"{SERVICE_URL}{path_prefix}/{path}"
148149
headers = {key: value for key, value in request.headers.items() if key.lower() not in ("host", "cookie")}
149150
if request.method == "GET":

ex_app/src/views/IframeView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,6 @@ export default {
168168
width: 100%;
169169
height: 100%;
170170
flex-grow: 1;
171+
background-color: #1c1b22;
171172
}
172173
</style>

0 commit comments

Comments
 (0)