coo7 commited on
Commit
1cefc24
·
verified ·
1 Parent(s): bea8fae

Update internal/apiserver/router.go

Browse files
Files changed (1) hide show
  1. internal/apiserver/router.go +0 -7
internal/apiserver/router.go CHANGED
@@ -1,8 +1,6 @@
1
  package apiserver
2
 
3
  import (
4
- "encoding/json"
5
- "log"
6
  "monica-proxy/internal/middleware"
7
  "monica-proxy/internal/monica"
8
  "monica-proxy/internal/types"
@@ -101,11 +99,6 @@ func handleChatCompletion(c echo.Context) error {
101
  })
102
  }
103
 
104
- marshalIndent, err := json.MarshalIndent(req, "", " ")
105
- if err != nil {
106
- return err
107
- }
108
- log.Printf("Received completion request: \n%s\n", marshalIndent)
109
  // 将 ChatGPTRequest 转换为 MonicaRequest
110
  monicaReq, err := types.ChatGPTToMonica(req)
111
  if err != nil {
 
1
  package apiserver
2
 
3
  import (
 
 
4
  "monica-proxy/internal/middleware"
5
  "monica-proxy/internal/monica"
6
  "monica-proxy/internal/types"
 
99
  })
100
  }
101
 
 
 
 
 
 
102
  // 将 ChatGPTRequest 转换为 MonicaRequest
103
  monicaReq, err := types.ChatGPTToMonica(req)
104
  if err != nil {