You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to view the finish_reason for a RunResult? (eg: end_turn, max_tokens, refusal, etc.)
I'm using vertex and I thought it might be available in RunReason.usage().details, but that's actually None for me.
The reason I ask is that when I have a completion that is longer than max_tokens, I need to know that so that I can give the llm a chance to finish the completion.
I'm using pydantic-ai-slim[vertexai]==0.0.14 and VertexAIModel('gemini-1.5-flash')
The text was updated successfully, but these errors were encountered:
Is there a way to view the finish_reason for a RunResult? (eg: end_turn, max_tokens, refusal, etc.)
I'm using vertex and I thought it might be available in RunReason.usage().details, but that's actually None for me.
The reason I ask is that when I have a completion that is longer than max_tokens, I need to know that so that I can give the llm a chance to finish the completion.
I'm using pydantic-ai-slim[vertexai]==0.0.14 and VertexAIModel('gemini-1.5-flash')
The text was updated successfully, but these errors were encountered: