From f826b91362fa0e8f7200727f1daaed745c2cf999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Fri, 22 May 2026 17:09:54 +0800 Subject: [PATCH] Add files via upload --- internal/config/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index f50ed0ee..69191bbf 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -228,6 +228,10 @@ type MultiAgentEinoMiddlewareConfig struct { DeepOutputKey string `yaml:"deep_output_key,omitempty" json:"deep_output_key,omitempty"` // DeepModelRetryMaxRetries > 0 enables deep.Config ModelRetryConfig (framework-level chat model retries). DeepModelRetryMaxRetries int `yaml:"deep_model_retry_max_retries,omitempty" json:"deep_model_retry_max_retries,omitempty"` + // RunRetryMaxAttempts > 0:429/5xx/网络抖动时 handler 分段续跑次数;0=默认 10。 + RunRetryMaxAttempts int `yaml:"run_retry_max_attempts,omitempty" json:"run_retry_max_attempts,omitempty"` + // RunRetryMaxBackoffSec 单次退避上限秒数;0=默认 30。 + RunRetryMaxBackoffSec int `yaml:"run_retry_max_backoff_sec,omitempty" json:"run_retry_max_backoff_sec,omitempty"` // TaskToolDescriptionPrefix when non-empty sets deep.Config TaskToolDescriptionGenerator (sub-agent names appended). TaskToolDescriptionPrefix string `yaml:"task_tool_description_prefix,omitempty" json:"task_tool_description_prefix,omitempty"` } @@ -510,7 +514,7 @@ type OpenAIConfig struct { type OpenAIReasoningConfig struct { // Mode: auto(默认)| on | off | default(与 auto 相同)。off 时不向模型附加推理扩展字段。 Mode string `yaml:"mode,omitempty" json:"mode,omitempty"` - // Effort: low | medium | high | max;空表示不单独指定强度(各 profile 行为见 internal/reasoning)。 + // Effort: low | medium | high | max | xhigh;max/xhigh 为不同网关最高档命名,原样下发、不互转。空表示不单独指定强度。 Effort string `yaml:"effort,omitempty" json:"effort,omitempty"` // AllowClientReasoning 为 false 时忽略请求体 reasoning;nil 或未设置等同于 true。 AllowClientReasoning *bool `yaml:"allow_client_reasoning,omitempty" json:"allow_client_reasoning,omitempty"`