Skip to content

fix: preserve model provider error details - #566

Open
March-77 wants to merge 4 commits into
spring-ai-alibaba:mainfrom
March-77:codex/fix-model-connection-test
Open

fix: preserve model provider error details#566
March-77 wants to merge 4 commits into
spring-ai-alibaba:mainfrom
March-77:codex/fix-model-connection-test

Conversation

@March-77

@March-77 March-77 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What changed

  • inspect nested exception messages for structured provider error payloads
  • preserve the provider message and error code before applying generic HTTP status mappings
  • add regression coverage for model_not_supported

Why

The saved-config ID endpoint and frontend call are already present in main through #570, which completed #565. The remaining issue is #459: provider responses such as model_not_supported are currently rewritten as a generic Base URL or path error.

Validation

  • ModelConfigOpsServiceTest covers the structured provider error response
  • GitHub Actions passed: format, Checkstyle, test-and-build, frontend build, linter, license, and secret checks

Fixes #459

The separate Spring MVC ServerHttpResponse concern mentioned in #459 is handled by #554 and is not part of this PR.

@March-77
March-77 marked this pull request as ready for review July 21, 2026 16:05
@March-77

March-77 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Applied the project Java formatter to ModelConfigControllerTest.java in d6da040. spring-javaformat:validate passes, and ModelConfigControllerTest plus ModelConfigOpsServiceTest pass (21 tests).

…nection-test

# Conflicts:
#	data-agent-frontend-nuxt/app/pages/system/model-config.vue
#	data-agent-management/src/main/java/com/alibaba/cloud/ai/dataagent/service/aimodelconfig/ModelConfigOpsService.java
@March-77

Copy link
Copy Markdown
Contributor Author

已合并最新 main 并解决冲突,之前的格式修复保留。模型配置相关测试 18 个通过,格式和 Checkstyle 也通过。

@March-77 March-77 changed the title fix: use saved credentials for model connection tests fix: preserve model provider error details Jul 27, 2026
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.

[BUG] 异常提示信息有误

1 participant