-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Labels
component:python sdkIssue/PR related to Python SDKIssue/PR related to Python SDKtype:feature requestNew feature request/enhancementNew feature request/enhancement
Description
Description of the feature request:
How about providing new support for retrieving the log probability of each predicted token by Google models like Gemini?
Something just like the same function illustrated in this OpenAI post: User Logprobs.
What problem are you trying to solve with this feature?
Getting the returned log prob of each generated token does help me (and other users maybe) to confirm the confidence of the model's prediction. Further, this feature can help users compute the perplexity of generated sentences to better understand the textual continuation quality.
Any other information you'd like to share?
No response
chazzhou, mdr223, krenova, Brian-Ckwu, scwu33 and 32 more
Metadata
Metadata
Assignees
Labels
component:python sdkIssue/PR related to Python SDKIssue/PR related to Python SDKtype:feature requestNew feature request/enhancementNew feature request/enhancement