Skip to content

fix(management): 测试模型连接时跳过 HTTP 重试 (#530)#538

Open
wsyjh8 wants to merge 1 commit into
spring-ai-alibaba:mainfrom
wsyjh8:fix/issue-530-no-retry-on-model-test
Open

fix(management): 测试模型连接时跳过 HTTP 重试 (#530)#538
wsyjh8 wants to merge 1 commit into
spring-ai-alibaba:mainfrom
wsyjh8:fix/issue-530-no-retry-on-model-test

Conversation

@wsyjh8

@wsyjh8 wsyjh8 commented Jun 7, 2026

Copy link
Copy Markdown

Closes #530

根因:测试连接路径复用了 Spring AI 默认重试模板(10 次 + 指数退避,并重试 ResourceAccessException),当 endpoint 错误或不可达时会长时间重试,导致前端一直停在“测试中”。

改动:为 DynamicModelFactory 增加 no-retry 模板重载,测试连接显式使用该模板;运行时 AiModelRegistry 继续走默认重试模板。

测试连接复用了默认重试模板(10 次 + 指数退避,并重试 ResourceAccessException),错误或不可达 endpoint 会让前端卡住数分钟。

测试路径改用不重试模板,运行时模型继续保留默认重试容错。
@wsyjh8 wsyjh8 marked this pull request as ready for review June 7, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 希望测试模型的时候,不要进行HTTP重试

1 participant