Welcome To openEuler Community
Hey @chuchengkai , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: sig-intelligence ,
and any of the maintainers: @fromhsc, @gogoxiaoxiao, @huzhengce, @kaitiandu, @leon-wang2021, @liumiao27, @lyhu, @wqianli ,
and any of the committers: @chantsztung, @jie-qi, @vanient9gap, @xiangyou_xie, @xtchen .


核查结论:代码中不存在"固定重试 8 次"的规则。LLM 请求重试次数由 providers.max_retries 控制(单个 Chat 请求的最大尝试次数,含首次),代码默认值和随 RPM 发布的默认配置 plugins/mcp/ram-a-mem.json 均为 3 —— 复现中观察到的"重试 3 次"正是该默认配置的预期行为。
"LLM 服务不可用"(连接拒绝/超时等传输层错误)属于会触发重试的类别:按指数退避(1s/2s/4s…,上限 64s)重试,max_retries=3 即首次请求 + 最多 2 次重试;其余如 HTTP 400/401/404(例如 base_url 路径错误)不会重试,立即失败。
已在 PR #24 补充完整文档说明(何时触发重试、何时不触发、max_retries 的准确含义、与 reasoning_only_retry/json_repair_attempts 的关系),欢迎审阅。


【缺陷描述】:请补充详细的缺陷问题现象描述
ram-a-mem在LLM服务不可用时没有重试8次
一、缺陷信息
ram-a-mem在LLM服务不可用时没有重试8次
【缺陷所属的os版本】
NAME="openEuler"
VERSION="26.09 (DevStation)"
ID="openEuler"
VERSION_ID="26.09"
PRETTY_NAME="openEuler 26.09 (DevStation)"
ANSI_COLOR="0;31"
【内核版本】
6.6.0-169.0.0.2.oe2609.x86_64
【缺陷所属软件及版本号】
ram-a-mem-0.0.1-1.oe2609.x86_64
【环境信息】
openeuler 2609 虚拟机
【问题复现步骤】
修改providers的url为“http://127.0.0.1:8000/v123”,构造LLM服务不可用,启动ram-a-mem后发送memory-ingest请求
【实际结果】
返回失败,重试3次
【期望结果】
返回失败,重试8次
【其他相关附件信息】
【缺陷详情及分析指导参考链接】