Skip to content

Commit 0ab2129

Browse files
Algorithm5838github-actions[bot]
authored andcommitted
fix: initialize tools and functions state
1 parent 319bb03 commit 0ab2129

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

483483
app.state.TERMINAL_SERVERS = []
484484

485+
########################################
486+
#
487+
# TOOLS & FUNCTIONS
488+
#
489+
########################################
490+
491+
app.state.TOOLS = {}
492+
app.state.TOOL_CONTENTS = {}
493+
494+
app.state.FUNCTIONS = {}
495+
app.state.FUNCTION_CONTENTS = {}
496+
485497
########################################
486498
#
487499
# DIRECT CONNECTIONS

0 commit comments

Comments
 (0)