Versions in this module Expand all Collapse all v0 v0.1.0 Mar 28, 2024 Changes in this version + func Chat(w http.ResponseWriter, r *http.Request) + func ChatService(messages []*bigmodel.Message) chan bigmodel.Result + func Error(w http.ResponseWriter, err string) + func Event(w http.ResponseWriter, event, data string) + func GetFuncSource(w http.ResponseWriter, r *http.Request) + func GetPanic(w http.ResponseWriter, r *http.Request) + func HTMLHandlerFunc(path string) http.HandlerFunc + func InitConfig(conf *Config) + func Run(port int) error + func Success(w http.ResponseWriter, data any) + type ChatRequest struct + Messages []*bigmodel.Message + type Config struct + BigModel bigmodel.BigModel + Functions []*parse.Function + LocalFunctions []*parse.Function + Panic string + Stack string + UseChinese bool + type JSON map[string]any + type Response struct + Data any + StatusCode int + StatusMsg string v0.0.5 Jan 22, 2024