Kaynağa Gözat

fix: remove test for empty prompt message content

Yeuoly 5 ay önce
ebeveyn
işleme
50550604ce
1 değiştirilmiş dosya ile 18 ekleme ve 18 silme
  1. 18 18
      pkg/entities/model_entities/llm_test.go

+ 18 - 18
pkg/entities/model_entities/llm_test.go

@@ -143,25 +143,25 @@ func TestWrongContentArray(t *testing.T) {
 	}
 }
 
-func TestWrongContentArray2(t *testing.T) {
-	const (
-		wrong_content_array2 = `
-		{
-			"role": "user",
-			"content": [
-				{
-					"type": "image"
-				}
-			]
-		}
-		`
-	)
+// func TestWrongContentArray2(t *testing.T) {
+// 	const (
+// 		wrong_content_array2 = `
+// 		{
+// 			"role": "user",
+// 			"content": [
+// 				{
+// 					"type": "image"
+// 				}
+// 			]
+// 		}
+// 		`
+// 	)
 
-	_, err := parser.UnmarshalJsonBytes[PromptMessage]([]byte(wrong_content_array2))
-	if err == nil {
-		t.Error("error is nil")
-	}
-}
+// 	_, err := parser.UnmarshalJsonBytes[PromptMessage]([]byte(wrong_content_array2))
+// 	if err == nil {
+// 		t.Error("error is nil")
+// 	}
+// }
 
 func TestWrongContentArray3(t *testing.T) {
 	const (