ajustes
This commit is contained in:
@@ -66,7 +66,7 @@ class Settings(BaseSettings):
|
||||
# y se usa el `load_priority` del frontmatter como tie-break.
|
||||
kb_similarity_floor: float = 0.6
|
||||
working_context_max_items: int = 20
|
||||
tool_raw_output_max_chars: int = 2000
|
||||
tool_raw_output_max_chars: int = 16000 # Antes 2000 (calibrado MiniMax 200k). Subido para DeepSeek 1M context.
|
||||
conversation_recent_raw_limit: int = 2
|
||||
task_history_max_entries: int = 20
|
||||
task_history_max_tokens: int = 1500
|
||||
|
||||
@@ -487,7 +487,10 @@ class ContextCompactor:
|
||||
except (json.JSONDecodeError, ValueError):
|
||||
return None
|
||||
|
||||
truncated, stats = self._truncate_json_value(data, list_limit=5, depth_limit=4)
|
||||
# Limits calibrados para context window grande (DeepSeek v4 = 1M tokens).
|
||||
# Antes era list_limit=5, depth_limit=4 — calibrado para MiniMax 200k.
|
||||
# Con 1M context podemos permitirnos ver bastante mas de cada respuesta.
|
||||
truncated, stats = self._truncate_json_value(data, list_limit=30, depth_limit=6)
|
||||
try:
|
||||
body = json.dumps(truncated, ensure_ascii=False, separators=(",", ":"))
|
||||
except (TypeError, ValueError):
|
||||
|
||||
Reference in New Issue
Block a user