From 517764a7ac0cc7d3f576a662fd65aa2b6d1a8018 Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Sat, 25 Apr 2026 01:48:45 +0800 Subject: [PATCH] fix: include error details in LLM model config failure response Co-Authored-By: Claude Opus 4.6 --- gns3server/api/routes/controller/llm_model_configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/api/routes/controller/llm_model_configs.py b/gns3server/api/routes/controller/llm_model_configs.py index 75a5472da..a567bd1ef 100644 --- a/gns3server/api/routes/controller/llm_model_configs.py +++ b/gns3server/api/routes/controller/llm_model_configs.py @@ -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}" )