Log

class textsynthpy.Log(logprob: float, is_greedy: bool, input_tokens: int)[source]

Object handles response form TextSynth.log_prob()

Parameters
  • logprob (float) – Logarithm of the probability of generation of continuation preceeded by context. It is always <= 0.

  • is_greedy (bool) – true if continuation would be generated by greedy sampling from continuation.

  • input_tokens (int) – Indicate the total number of input tokens. It is useful to estimate the number of compute resources used by the request.