MCPcopy 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
34func 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

InitOptionMapFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected