Skip to content

Commit 14ea4bf

Browse files
authored
Merge pull request #537 from deepgram/feat/context
feat: support context length option
2 parents 4521048 + 3735cc0 commit 14ea4bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deepgram/clients/agent/v1/websocket/options.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a MIT license that can be found in the LICENSE file.
33
# SPDX-License-Identifier: MIT
44

5-
from typing import List, Optional, Union, Any, Tuple, Dict
5+
from typing import List, Optional, Union, Any, Tuple, Dict, Literal
66
import logging
77

88
from dataclasses import dataclass, field
@@ -150,6 +150,9 @@ class Think(BaseResponse):
150150
prompt: Optional[str] = field(
151151
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
152152
)
153+
context_length: Optional[Union[int, Literal["max"]]] = field(
154+
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
155+
)
153156

154157
def __post_init__(self):
155158
if not isinstance(self.provider, Provider):

0 commit comments

Comments
 (0)