feat: added improved llm model selector

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-02-20 14:28:01 -08:00
parent dc19b43967
commit a3cd598e01
23 changed files with 14733 additions and 126 deletions

View file

@ -224,10 +224,12 @@ def create_create_notion_page_tool(
raise
logger.error(f"Error creating Notion page: {e}", exc_info=True)
if isinstance(e, (ValueError, NotionAPIError)):
if isinstance(e, ValueError | NotionAPIError):
message = str(e)
else:
message = "Something went wrong while creating the page. Please try again."
message = (
"Something went wrong while creating the page. Please try again."
)
return {"status": "error", "message": message}
return create_notion_page

View file

@ -262,10 +262,12 @@ def create_delete_notion_page_tool(
raise
logger.error(f"Error deleting Notion page: {e}", exc_info=True)
if isinstance(e, (ValueError, NotionAPIError)):
if isinstance(e, ValueError | NotionAPIError):
message = str(e)
else:
message = "Something went wrong while deleting the page. Please try again."
message = (
"Something went wrong while deleting the page. Please try again."
)
return {"status": "error", "message": message}
return delete_notion_page

View file

@ -261,10 +261,12 @@ def create_update_notion_page_tool(
raise
logger.error(f"Error updating Notion page: {e}", exc_info=True)
if isinstance(e, (ValueError, NotionAPIError)):
if isinstance(e, ValueError | NotionAPIError):
message = str(e)
else:
message = "Something went wrong while updating the page. Please try again."
message = (
"Something went wrong while updating the page. Please try again."
)
return {"status": "error", "message": message}
return update_notion_page