Update operate.py

This commit is contained in:
zrguo 2025-07-14 16:37:25 +08:00
parent 4e425b1b59
commit bbd91d3a18

View file

@ -1980,12 +1980,12 @@ async def _build_query_context(
max_entity_tokens = getattr( max_entity_tokens = getattr(
query_param, query_param,
"max_entity_tokens", "max_entity_tokens",
text_chunks_db.global_config.get("MAX_ENTITY_TOKENS", 8000), text_chunks_db.global_config.get("MAX_ENTITY_TOKENS", 10000),
) )
max_relation_tokens = getattr( max_relation_tokens = getattr(
query_param, query_param,
"max_relation_tokens", "max_relation_tokens",
text_chunks_db.global_config.get("MAX_RELATION_TOKENS", 6000), text_chunks_db.global_config.get("MAX_RELATION_TOKENS", 10000),
) )
max_total_tokens = getattr( max_total_tokens = getattr(
query_param, query_param,