Skip to content

Commit 604950f

Browse files
committed
fix: initialize tools and functions state
1 parent b5961a7 commit 604950f

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
@@ -474,6 +474,18 @@ async def lifespan(app: FastAPI):
474474

475475
app.state.TERMINAL_SERVERS = []
476476

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

0 commit comments

Comments
 (0)