mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Allow first logprob token to be null to match openai api
This commit is contained in:
@@ -22,9 +22,9 @@ class Embedding(TypedDict):
|
|||||||
|
|
||||||
class CompletionLogprobs(TypedDict):
|
class CompletionLogprobs(TypedDict):
|
||||||
text_offset: List[int]
|
text_offset: List[int]
|
||||||
token_logprobs: List[float]
|
token_logprobs: List[Optional[float]]
|
||||||
tokens: List[str]
|
tokens: List[str]
|
||||||
top_logprobs: List[Dict[str, float]]
|
top_logprobs: List[Optional[Dict[str, float]]]
|
||||||
|
|
||||||
|
|
||||||
class CompletionChoice(TypedDict):
|
class CompletionChoice(TypedDict):
|
||||||
|
|||||||
Reference in New Issue
Block a user