Explorar o código

去除一处无用分支

liwei hai 1 mes
pai
achega
18c2775097
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      internal/logic/chat/chat_completions_logic.go

+ 0 - 2
internal/logic/chat/chat_completions_logic.go

@@ -167,8 +167,6 @@ func (l *ChatCompletionsLogic) appendUsageDetailLog(authToken string, req *types
 	switch val := req.Messages[0].Content.(type) {
 	case string:
 		msgContent = val
-	case []map[string]string:
-		msgContent = val[0]["type"]
 	case []interface{}:
 		if len(val) > 0 {
 			if valc, ok := val[0].(map[string]interface{}); ok {