[PR #228] [CLOSED] Migrate AI story generators to FastAPI with enhanced logging #602

Closed
opened 2026-03-13 20:59:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AJaySi/ALwrity/pull/228
Author: @AJaySi
Created: 9/1/2025
Status: Closed

Base: mainHead: cursor/migrate-ai-story-generators-to-fastapi-with-enhanced-logging-79ff


📝 Commits (1)

  • 3142dee Add story generators API with writer, illustrator, and video modules

📊 Changes

23 files changed (+4067 additions, -1 deletions)

View changed files

📝 backend/api/__pycache__/__init__.cpython-313.pyc (+0 -0)
📝 backend/api/__pycache__/onboarding.cpython-313.pyc (+0 -0)
backend/api/story_generators/README.md (+268 -0)
backend/api/story_generators/__init__.py (+16 -0)
backend/api/story_generators/core/__init__.py (+3 -0)
backend/api/story_generators/core/exceptions.py (+132 -0)
backend/api/story_generators/core/logging.py (+173 -0)
backend/api/story_generators/main.py (+139 -0)
backend/api/story_generators/routers/__init__.py (+5 -0)
backend/api/story_generators/routers/story_illustrator.py (+507 -0)
backend/api/story_generators/routers/story_video_generator.py (+422 -0)
backend/api/story_generators/routers/story_writer.py (+353 -0)
backend/api/story_generators/schemas/__init__.py (+78 -0)
backend/api/story_generators/schemas/story_illustrator_schemas.py (+117 -0)
backend/api/story_generators/schemas/story_video_schemas.py (+134 -0)
backend/api/story_generators/schemas/story_writer_schemas.py (+119 -0)
backend/api/story_generators/services/__init__.py (+17 -0)
backend/api/story_generators/services/gemini_image_service.py (+375 -0)
backend/api/story_generators/services/story_illustrator_service.py (+428 -0)
backend/api/story_generators/services/story_video_service.py (+363 -0)

...and 3 more files

📄 Description

Migrated the three Streamlit-based story generators to new FastAPI endpoints.

This migration modernizes the API, improves scalability, introduces robust logging and exception handling, establishes an independent backend structure, and updates the Gemini image generation module, all while preserving existing functionality.


Open in Cursor Open in Web

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AJaySi/ALwrity/pull/228 **Author:** [@AJaySi](https://github.com/AJaySi) **Created:** 9/1/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `cursor/migrate-ai-story-generators-to-fastapi-with-enhanced-logging-79ff` --- ### 📝 Commits (1) - [`3142dee`](https://github.com/AJaySi/ALwrity/commit/3142dee726ab58cc94a717242cc749c717b29c1e) Add story generators API with writer, illustrator, and video modules ### 📊 Changes **23 files changed** (+4067 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/api/__pycache__/__init__.cpython-313.pyc` (+0 -0) 📝 `backend/api/__pycache__/onboarding.cpython-313.pyc` (+0 -0) ➕ `backend/api/story_generators/README.md` (+268 -0) ➕ `backend/api/story_generators/__init__.py` (+16 -0) ➕ `backend/api/story_generators/core/__init__.py` (+3 -0) ➕ `backend/api/story_generators/core/exceptions.py` (+132 -0) ➕ `backend/api/story_generators/core/logging.py` (+173 -0) ➕ `backend/api/story_generators/main.py` (+139 -0) ➕ `backend/api/story_generators/routers/__init__.py` (+5 -0) ➕ `backend/api/story_generators/routers/story_illustrator.py` (+507 -0) ➕ `backend/api/story_generators/routers/story_video_generator.py` (+422 -0) ➕ `backend/api/story_generators/routers/story_writer.py` (+353 -0) ➕ `backend/api/story_generators/schemas/__init__.py` (+78 -0) ➕ `backend/api/story_generators/schemas/story_illustrator_schemas.py` (+117 -0) ➕ `backend/api/story_generators/schemas/story_video_schemas.py` (+134 -0) ➕ `backend/api/story_generators/schemas/story_writer_schemas.py` (+119 -0) ➕ `backend/api/story_generators/services/__init__.py` (+17 -0) ➕ `backend/api/story_generators/services/gemini_image_service.py` (+375 -0) ➕ `backend/api/story_generators/services/story_illustrator_service.py` (+428 -0) ➕ `backend/api/story_generators/services/story_video_service.py` (+363 -0) _...and 3 more files_ </details> ### 📄 Description Migrated the three Streamlit-based story generators to new FastAPI endpoints. This migration modernizes the API, improves scalability, introduces robust logging and exception handling, establishes an independent backend structure, and updates the Gemini image generation module, all while preserving existing functionality. --- <a href="https://cursor.com/background-agent?bcId=bc-dc82e288-d39b-4ad4-94a0-75e7bb31069e"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"> <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"> </picture> </a> <a href="https://cursor.com/agents?id=bc-dc82e288-d39b-4ad4-94a0-75e7bb31069e"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"> <img alt="Open in Web" src="https://cursor.com/open-in-web.svg"> </picture> </a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-13 20:59:24 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#602
No description provided.