소스 검색

去除一处无用分支

liwei 1 개월 전
부모
커밋
18c2775097
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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 {