Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiprodcoder/MIXAPI
/ Chats2JsonString
Function
Chats2JsonString
setting/chat.go:34–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
}
33
34
func
Chats2JsonString() string {
35
jsonBytes, err := json.Marshal(Chats)
36
if
err != nil {
37
common.SysError(
"error marshalling chats: "
+ err.Error())
38
return
"[]"
39
}
40
return
string(jsonBytes)
41
}
Callers
1
InitOptionMap
Function · 0.92
Calls
2
SysError
Function · 0.92
Error
Method · 0.80
Tested by
no test coverage detected