From d0046e9eafa9400bf5f4fa13c488a24fa2ffa457 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Sun, 30 Jun 2024 10:55:34 +0800 Subject: [PATCH] "Fix alignment and indentation issues in chat_model_handler.go and main.go" --- api/chat_model_handler.go | 4 ++-- api/main.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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))