add provider_specific_fields to GenericStreamingChunk

This commit is contained in:
Ishaan Jaff 2024-08-16 08:44:29 -07:00
parent cbdaecb5a8
commit 740d1fdb1c

View file

@ -88,6 +88,9 @@ class GenericStreamingChunk(TypedDict, total=False):
usage: Optional[ChatCompletionUsageBlock]
index: int
# use this dict if you want to return any provider specific fields in the response
provider_specific_fields: Optional[Dict[str, Any]]
from enum import Enum