Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: Add back accidentally deleted code

zhaozixuanfde87e399623
diff --git a/deploy/yuanrong/conf/gateway-config-yuanrong.template.yaml b/deploy/yuanrong/conf/gateway-config-yuanrong.template.yaml
index 2477a0c29d..b3e9177888 100644
--- a/deploy/yuanrong/conf/gateway-config-yuanrong.template.yaml
+++ b/deploy/yuanrong/conf/gateway-config-yuanrong.template.yaml
@@ -377,48 +377,21 @@ react:
enable_reload: true
enabled: true
message_summary_offloader_config:
- messages_threshold: null
- large_message_threshold: 10000
- offload_message_type: [ "tool" ]
- protected_tool_names: ["read_file:*SKILL.md", "reload_original_context_messages"]
- messages_to_keep: null
- keep_last_round: false
- customized_summary_prompt: null
- enable_adaptive_compression: true
- summary_max_tokens: 900
- enable_precise_step: false
- step_summary_max_context_messages: 8
- content_max_chars_for_compression: 200000
+ add_message_threshold_ratio: 0.1
+ ttl_seconds: 300
+ ttl_context_occupancy_ratio: 0.5
+ ttl_message_threshold_ratio: 0.05
dialogue_compressor_config:
- messages_threshold: null
- tokens_threshold: 100000
- messages_to_keep: 10
- keep_last_round: false
- compression_target_tokens: 1800
- offload_writeback_enabled: false
+ trigger_context_ratio: 0.8
+ min_target_context_ratio: 0.1
current_round_compressor_config:
- tokens_threshold: 100000
- messages_to_keep: 3
- min_selected_tokens_for_compression: 20000
- compression_target_tokens: 4000
- summary_merge_target_tokens: 4000
- accumulated_summary_token_limit: 20000
- summary_merge_min_blocks: 3
- prior_context_window_size: 10
- offload_writeback_enabled: false
+ trigger_context_ratio: 0.8
+ min_target_context_ratio: 0.1
+ keep_recent_messages: 4
round_level_compressor_config:
- rounds_threshold: 2
- trigger_context_ratio: 0.9
- target_total_tokens: 160000
- compression_call_max_tokens: 250000
- keep_last_round: true
- keep_recent_messages: 6
- messages_to_keep: 6
- first_pass_target_tokens: 30000
- second_pass_target_tokens: 20000
- third_pass_target_tokens: 10000
- truncate_head_ratio: 0.2
- offload_writeback_enabled: false
+ trigger_context_ratio: 0.8
+ min_target_context_ratio: 0.1
+ keep_recent_messages: 4
# Skills 在线自演进配置
evolution:
enabled: true # true = 启用在线 Skills 自演进