mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
vertex patch
This commit is contained in:
parent
920d69a919
commit
07235843ff
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user