Skip to content

Commit

Permalink
feat: adding optional Usage for chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Dec 13, 2024
1 parent fc75083 commit d2e8cae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portkey_ai/api_resources/types/complete_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class TextCompletionChunk(BaseModel, extra="allow"):
created: Optional[int] = None
model: Optional[str] = None
provider: Optional[str] = None
usage: Optional[CompletionUsage] = None
choices: List[TextChoice]

def __str__(self):
Expand Down

0 comments on commit d2e8cae

Please sign in to comment.