diff --git a/api/chat_model_handler.go b/api/chat_model_handler.go index c4bcfb58..c31dfb90 100644 --- a/api/chat_model_handler.go +++ b/api/chat_model_handler.go @@ -141,7 +141,7 @@ func (h *ChatModelHandler) UpdateChatModel(w http.ResponseWriter, r *http.Reques DefaultToken int32 MaxToken int32 HttpTimeOut int32 - isEnable bool + isEnable bool } err = json.NewDecoder(r.Body).Decode(&input) if err != nil { @@ -163,7 +163,7 @@ func (h *ChatModelHandler) UpdateChatModel(w http.ResponseWriter, r *http.Reques DefaultToken: input.DefaultToken, MaxToken: input.MaxToken, HttpTimeOut: input.HttpTimeOut, - isEnable: input.isEnable, + isEnable: input.isEnable, }) if err != nil { diff --git a/api/main.go b/api/main.go index 654dbba5..2a2d5c83 100644 --- a/api/main.go +++ b/api/main.go @@ -185,8 +185,6 @@ func main() { apiRouter.HandleFunc("/tts", handleTTSRequest) - - // Embed static/* directory fs := http.FileServer(http.FS(static.StaticFiles))