Skip to content

Commit 3d3977a

Browse files
authored
Merge pull request #375 from deepgram/feat/context
feat: support context length option
2 parents 12ff077 + 9a9ccd9 commit 3d3977a

File tree

1 file changed

+8
-0
lines changed
  • Deepgram/Models/Agent/v2/WebSocket

1 file changed

+8
-0
lines changed

Deepgram/Models/Agent/v2/WebSocket/Think.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ public record Think
2929
[JsonPropertyName("functions")]
3030
public List<Function>? Functions { get; set; }
3131

32+
/// <summary>
33+
/// The context length, which can be an integer or the literal string "max".
34+
/// </summary>
35+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
36+
[JsonPropertyName("context_length")]
37+
// The object type allows for both integer and string values, accommodating the "max" case.
38+
public object? ContextLength { get; set; }
39+
3240
/// <summary>
3341
/// Override ToString method to serialize the object
3442
/// </summary>

0 commit comments

Comments
 (0)