vertex patch

This commit is contained in:
Caren Thomas 2025-05-16 13:51:56 -07:00
parent 920d69a919
commit 07235843ff

View File

@ -235,6 +235,8 @@ class GoogleVertexClient(GoogleAIClient):
)
except json.decoder.JSONDecodeError:
if candidate.finish_reason == "MAX_TOKENS":
raise ValueError(f"Could not parse response data from LLM: exceeded max token limit")
# Inner thoughts are the content by default
inner_thoughts = response_message.text