MCPcopy Create free account

hub / github.com/Akegarasu/ChatGLM-webui / functions

Functions36 in github.com/Akegarasu/ChatGLM-webui

↓ 3 callersFunctiongradioApp
()
scripts/main.js:8
↓ 3 callersFunctionparse_codeblock
(text)
modules/context.py:7
↓ 2 callersFunctionexecuteCallbacks
(queue, m)
scripts/main.js:37
↓ 2 callersFunctionget_cuda_device
()
modules/device.py:8
↓ 1 callersMethodappend
(self, query, output)
modules/context.py:30
↓ 1 callersFunctioncheck_and_create
(p)
webui.py:18
↓ 1 callersMethodclear
(self)
modules/context.py:46
↓ 1 callersFunctioncreate_ui
()
modules/ui.py:45
↓ 1 callersFunctionensure_output_dirs
()
webui.py:15
↓ 1 callersFunctionget_optimal_device
()
modules/device.py:15
↓ 1 callersFunctionget_uiCurrentTab
()
scripts/main.js:13
↓ 1 callersFunctionget_uiCurrentTabContent
()
scripts/main.js:17
↓ 1 callersFunctioninfer
(query, history: Optional[List[Tuple]], max_length, top_p, temperature, use_stream_chat: b
modules/model.py:81
↓ 1 callersFunctioninit
()
webui.py:26
↓ 1 callersMethodlimit_round
(self)
modules/context.py:56
↓ 1 callersMethodload_history
(self, file)
modules/context.py:85
↓ 1 callersFunctionload_model
()
modules/model.py:51
↓ 1 callersFunctionmain
()
webui.py:42
↓ 1 callersFunctionprepare_model
()
modules/model.py:12
↓ 1 callersMethodrefresh_last
(self)
modules/context.py:41
↓ 1 callersFunctionreload_javascript
()
modules/ui.py:139
↓ 1 callersMethodrevoke
(self)
modules/context.py:50
↓ 1 callersFunctionrunCallback
(x, m)
scripts/main.js:29
↓ 1 callersMethodsave_as_md
(self)
modules/context.py:75
↓ 1 callersMethodsave_history
(self)
modules/context.py:67
↓ 1 callersFunctiontorch_gc
()
modules/device.py:21
↓ 1 callersMethodupdate_last
(self, query, output)
modules/context.py:37
↓ 1 callersFunctionwait_on_server
(ui=None)
webui.py:31
Method__init__
(self, history: Optional[List[Tuple[str, str]]] = None)
modules/context.py:22
Functionapply_max_round_click
(ctx, max_round)
modules/ui.py:40
Functionclear_history
(ctx)
modules/ui.py:35
FunctiononUiTabChange
(callback)
scripts/main.js:25
FunctiononUiUpdate
(callback)
scripts/main.js:21
Functionpredict
(ctx, query, max_length, top_p, temperature, use_stream_chat)
modules/ui.py:14
Functionrestart_ui
()
modules/ui.py:120
Functiontemplate_response
(*args, **kwargs)
modules/ui.py:153