Skip to content

Commit 55c8942

Browse files
Algorithm5838github-actions[bot]
authored andcommitted
fix: initialize tools and functions state
1 parent b2a986d commit 55c8942

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

backend/open_webui/main.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,18 @@ async def lifespan(app: FastAPI):
473473

474474
app.state.TERMINAL_SERVERS = []
475475

476+
########################################
477+
#
478+
# TOOLS & FUNCTIONS
479+
#
480+
########################################
481+
482+
app.state.TOOLS = {}
483+
app.state.TOOL_CONTENTS = {}
484+
485+
app.state.FUNCTIONS = {}
486+
app.state.FUNCTION_CONTENTS = {}
487+
476488
########################################
477489
#
478490
# DIRECT CONNECTIONS

0 commit comments

Comments
 (0)