Skip to content

Commit

Permalink
Merge pull request #186 from narengogi/fix/logprobs-type-update
Browse files Browse the repository at this point in the history
Allow token_logprobs and top_logprobs List to have Objects of None type
  • Loading branch information
VisargD authored Jul 25, 2024
2 parents 50df00d + a264343 commit 6f93abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portkey_ai/api_resources/types/complete_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class CompletionUsage(BaseModel):

class Logprobs(BaseModel):
text_offset: Optional[List[int]] = None
token_logprobs: Optional[List[float]] = None
token_logprobs: Optional[List[Optional[float]]] = None
tokens: Optional[List[str]] = None
top_logprobs: Optional[List[Dict[str, float]]] = None
top_logprobs: Optional[List[Optional[Dict[str, float]]]] = None


class CompletionChoice(BaseModel):
Expand Down

0 comments on commit 6f93abb

Please sign in to comment.