Skip to content

armgit / letta

Public Imported from GitHub
0

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.py
index 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 pgvector
from 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 np
if embedding and len(embedding) != MAX_EMBEDDING_DIM: