Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mudler/LocalAI
/ Clear
Method
Clear
core/cli/chat/session.go:56–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
54
}
55
56
func
(s *chatSession) Clear() {
57
s.messages = nil
58
}
59
60
func
(s *chatSession) SwitchModel(model string) error {
61
if
!modelExists(s.models, model) {
Callers
5
SwitchModel
Method · 0.95
ClearTraces
Function · 0.45
ClearBackendLogsEndpoint
Function · 0.45
runTerminalChat
Function · 0.45
ClearBackendTraces
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected