fix: include error details in LLM model config failure response

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
YueGuobinandClaude Opus 4.6 committed 2026-04-25 01:48:45 +08:00
1 parent ee43a5cdf5
commit 517764a7ac
1 file changed
+2 -2
@@ -242,7 +242,7 @@ async def create_user_llm_model_config(
log.error(f"Failed to create LLM model config: {e}")
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail="Failed to create LLM model configuration"
detail=f"Failed to create LLM model configuration: {e}"
)
@@ -564,7 +564,7 @@ async def create_group_llm_model_config(
log.error(f"Failed to create LLM model config: {e}")
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail="Failed to create LLM model configuration"
detail=f"Failed to create LLM model configuration: {e}"
)