Python class
LogProb
LogProbβ
class max.pipelines.request.LogProb(*, token, logprob, bytes=None, top_logprobs=None)
Bases: BaseModel
Log probability information for output tokens.
-
Parameters:
bytesβ
logprobβ
logprob: float
model_configβ
model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
tokenβ
token: str
top_logprobsβ
top_logprobs: list[TopLogProb] | None
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!