Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 82384b4

Browse files
committed
Make ContentSafetyLabel.Severity nullable
1 parent 61dc809 commit 82384b4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.fernignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ src/AssemblyAI/Transcripts/TranscriptNotCompletedStatusException.cs
2929
src/AssemblyAI/Transcripts/Types/TranscriptExtensions.cs
3030
src/AssemblyAI/Transcripts/Types/TranscriptParamsMapper.cs
3131
src/AssemblyAI/Transcripts/Types/TranscriptParamsCloner.cs
32-
src/AssemblyAI/Transcripts/Types/ContentSafetyLabelsResult.cs
33-
src/AssemblyAI/Transcripts/Types/TopicDetectionModelResult.cs
3432
src/AssemblyAI/Lemur/ExtendedLemurClient.cs
3533
src/AssemblyAI/Lemur/Types/LemurResponse.cs
3634
src/AssemblyAI/Lemur/Types/LemurModel.cs
@@ -50,3 +48,6 @@ src/AssemblyAI.IntegrationTests
5048
docfx
5149

5250
Samples
51+
52+
# TODO: remove these ignores when AssemblyAI fixes the API
53+
src/AssemblyAI/Transcripts/Types/ContentSafetyLabel.cs

src/AssemblyAI/Transcripts/Types/ContentSafetyLabel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public record ContentSafetyLabel
2323
/// How severely the topic is discussed in the section, from 0 to 1
2424
/// </summary>
2525
[JsonPropertyName("severity")]
26-
public required double Severity { get; set; }
26+
public required double? Severity { get; set; }
2727

2828
public override string ToString()
2929
{

0 commit comments

Comments
 (0)