Skip to content

Commit

Permalink
Set Field in Metadata as Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonthenen committed Mar 7, 2024
1 parent 7750a01 commit 45215a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepgram/clients/live/v1/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __str__(self) -> str:
@dataclass
class Metadata:
request_id: str = ""
model_info: ModelInfo = field(
model_info: Optional[ModelInfo] = field(
default=None, metadata=config(exclude=lambda f: f is None)
)
model_uuid: str = ""
Expand Down
2 changes: 1 addition & 1 deletion deepgram/clients/manage/v1/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ class UsageFieldsResponse:
models: List[UsageModel] = None
processing_methods: List[str] = None
features: List[str] = None
languages: List[str] = field(
languages: Optional[List[str]] = field(
default=None, metadata=config(exclude=lambda f: f is None)
)

Expand Down

0 comments on commit 45215a8

Please sign in to comment.