Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Fix gating for padding again (#6030)
Matthew Zhou940fde24e970
diff --git a/letta/schemas/passage.py b/letta/schemas/passage.pyindex 36cd23c13..aeb8662d8 100644--- a/letta/schemas/passage.py+++ b/letta/schemas/passage.py@@ -63,7 +63,7 @@ class Passage(PassageBase):# Only do this if using pgvectorfrom letta.helpers.tpuf_client import should_use_tpuf- if should_use_tpuf() and settings.environment == "PRODUCTION":+ if not should_use_tpuf() or settings.environment != "PRODUCTION":import numpy as npif embedding and len(embedding) != MAX_EMBEDDING_DIM: