Incomplete Logprobs When Using Structured Output in Google Vertex AI #32860
Unanswered
hienphan161
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I faced an issue when trying to get full
logprobs
while using Structured Output with Google Vertex AI. I followed the instructions from this link and used theinclude_raw=True
flag with the Google VertexAI model. However, the returnedlogprobs
don't seem to cover all the tokens in the response.Here’s my code:
And here’s the response I got:
The
logprobs_result
looks like this:If I combine all the tokens from the
logprobs
, I get:You can see that the
line
inpunchline
disappears, and also therating
.Beta Was this translation helpful? Give feedback.
All reactions