Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion deepgram/clients/agent/v1/websocket/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a MIT license that can be found in the LICENSE file.
# SPDX-License-Identifier: MIT

from typing import List, Optional, Union, Any, Tuple, Dict
from typing import List, Optional, Union, Any, Tuple, Dict, Literal
Comment thread
naomi-lgbt marked this conversation as resolved.
import logging

from dataclasses import dataclass, field
Expand Down Expand Up @@ -150,6 +150,9 @@ class Think(BaseResponse):
prompt: Optional[str] = field(
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
)
context_length: Optional[Union[int, Literal["max"]]] = field(
default=None, metadata=dataclass_config(exclude=lambda f: f is None)
)
Comment thread
naomi-lgbt marked this conversation as resolved.

def __post_init__(self):
if not isinstance(self.provider, Provider):
Expand Down