From ec2294a4555a663dd26710f785c10a77451a63d8 Mon Sep 17 00:00:00 2001 From: Suraj Jha Date: Wed, 6 Aug 2025 23:58:26 +0545 Subject: [PATCH] fix: basic fixes on the prompt --- servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py b/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py index d7435b6b..f56a0394 100644 --- a/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py +++ b/servers/fastapi/api/v1/ppt/endpoints/slide_to_html.py @@ -160,7 +160,7 @@ async def generate_html_from_slide(base64_image: str, media_type: str, xml_conte return html_content - except errors.GoogleAPIError as e: + except errors.APIError as e: print(f"Google API Error: {e}") raise HTTPException( status_code=500, @@ -255,7 +255,7 @@ async def generate_react_component_from_html(html_content: str, api_key: str) -> print(f"Filtered React content length: {len(filtered_react_content)}") return filtered_react_content - except errors.GoogleAPIError as e: + except errors.APIError as e: print(f"Google API Error: {e}") raise HTTPException( status_code=500,