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:
YueGuobin 2026-04-25 01:48:45 +08:00
parent ee43a5cdf5
commit 517764a7ac
No known key found for this signature in database

View File

@ -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}"
)