Skip to content

Commit

Permalink
"Fix alignment and indentation issues in chat_model_handler.go and ma…
Browse files Browse the repository at this point in the history
…in.go"
  • Loading branch information
swuecho committed Jun 30, 2024
1 parent dbbf93f commit d0046e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/chat_model_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ func main() {

apiRouter.HandleFunc("/tts", handleTTSRequest)



// Embed static/* directory
fs := http.FileServer(http.FS(static.StaticFiles))

Expand Down

0 comments on commit d0046e9

Please sign in to comment.