Allow first logprob token to be null to match openai api
This commit is contained in:
parent
dc39cc0fa4
commit
a634a2453b
1 changed files with 2 additions and 2 deletions
|
@ -22,9 +22,9 @@ class Embedding(TypedDict):
|
|||
|
||||
class CompletionLogprobs(TypedDict):
|
||||
text_offset: List[int]
|
||||
token_logprobs: List[float]
|
||||
token_logprobs: List[Optional[float]]
|
||||
tokens: List[str]
|
||||
top_logprobs: List[Dict[str, float]]
|
||||
top_logprobs: List[Optional[Dict[str, float]]]
|
||||
|
||||
|
||||
class CompletionChoice(TypedDict):
|
||||
|
|
Loading…
Reference in a new issue