File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Libraries/Microsoft.Extensions.AI Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ private static JsonSerializerOptions CreateDefaultOptions()
3030 // Keep in sync with the JsonSourceGenerationOptions on JsonContext below.
3131 var options = new JsonSerializerOptions ( JsonSerializerDefaults . Web )
3232 {
33+ WriteIndented = true ,
3334 DefaultIgnoreCondition = JsonIgnoreCondition . WhenWritingNull ,
3435 TypeInfoResolver = new DefaultJsonTypeInfoResolver ( ) ,
3536 } ;
@@ -44,7 +45,7 @@ private static JsonSerializerOptions CreateDefaultOptions()
4445 }
4546
4647 // Keep in sync with CreateDefaultOptions above.
47- [ JsonSourceGenerationOptions ( JsonSerializerDefaults . Web , DefaultIgnoreCondition = JsonIgnoreCondition . WhenWritingNull ) ]
48+ [ JsonSourceGenerationOptions ( JsonSerializerDefaults . Web , WriteIndented = true , DefaultIgnoreCondition = JsonIgnoreCondition . WhenWritingNull ) ]
4849 [ JsonSerializable ( typeof ( IList < ChatMessage > ) ) ]
4950 [ JsonSerializable ( typeof ( ChatOptions ) ) ]
5051 [ JsonSerializable ( typeof ( EmbeddingGenerationOptions ) ) ]
You can’t perform that action at this time.
0 commit comments