fix(mcp): make embedding batch size a plain constant

The value is already configurable per filter via
mcp_semantic_tool_filter.embedding_batch_size, so the extra env-var
read was redundant and would require a cross-repo docs entry to satisfy
the env-keys documentation check.
This commit is contained in:
Devin AI 2026-07-08 19:21:04 +00:00
parent 005a9c47b3
commit 9c18c6f66d

View file

@ -89,7 +89,7 @@ DEFAULT_MCP_SEMANTIC_FILTER_TOP_K = int(os.getenv("DEFAULT_MCP_SEMANTIC_FILTER_T
DEFAULT_MCP_SEMANTIC_FILTER_SIMILARITY_THRESHOLD = float(
os.getenv("DEFAULT_MCP_SEMANTIC_FILTER_SIMILARITY_THRESHOLD", 0.3)
)
DEFAULT_EMBEDDING_ENCODER_BATCH_SIZE = int(os.getenv("DEFAULT_EMBEDDING_ENCODER_BATCH_SIZE", 1024))
DEFAULT_EMBEDDING_ENCODER_BATCH_SIZE = 1024
MAX_MCP_SEMANTIC_FILTER_TOOLS_HEADER_LENGTH = int(os.getenv("MAX_MCP_SEMANTIC_FILTER_TOOLS_HEADER_LENGTH", 150))
# Semantic Guard Defaults