Skip to content

Commit

Permalink
Added pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof318 committed Sep 6, 2024
1 parent fec828d commit fc70976
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ internal sealed class AnthropicStreamingResponse
[JsonPropertyName("index")]
public int Index { get; init; }

#pragma warning disable CS0649 // Field is assigned via reflection
[JsonPropertyName("content_block")]
[JsonInclude]
private readonly AnthropicContent? _contentBlock;

[JsonPropertyName("delta")]
[JsonInclude]
private readonly JsonNode? _delta;
#pragma warning restore CS0649

/// <summary>
/// Delta of anthropic content, only if the type is "content_block_start" or "content_block_delta", otherwise null.
Expand Down

0 comments on commit fc70976

Please sign in to comment.