From 9f2b989d7b8b1032ed4f2a4093a8c4a01bdbfb85 Mon Sep 17 00:00:00 2001 From: Zain Hasan Date: Wed, 18 Jun 2025 12:00:29 -0400 Subject: [PATCH] fix logprob description --- openapi.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 9edc519..12088b4 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1576,8 +1576,8 @@ components: logprobs: type: integer minimum: 0 - maximum: 1 - description: Integer (0 or 1) that controls whether log probabilities of generated tokens are returned. Log probabilities help assess model confidence in token predictions. + maximum: 20 + description: An integer between 0 and 20 of the top k tokens to return log probabilities for at each generation step, instead of just the sampled token. Log probabilities help assess model confidence in token predictions. echo: type: boolean description: If true, the response will contain the prompt. Can be used with `logprobs` to return prompt logprobs. @@ -1860,8 +1860,8 @@ components: logprobs: type: integer minimum: 0 - maximum: 1 - description: Integer (0 or 1) that controls whether log probabilities of generated tokens are returned. Log probabilities help assess model confidence in token predictions. + maximum: 20 + description: An integer between 0 and 20 of the top k tokens to return log probabilities for at each generation step, instead of just the sampled token. Log probabilities help assess model confidence in token predictions. echo: type: boolean description: If true, the response will contain the prompt. Can be used with `logprobs` to return prompt logprobs.