Open
Conversation
added 6 commits
January 29, 2026 15:19
- Added hiredis as a dependency in pyproject.toml. - Introduced InMemorySummaryRepository for storing summaries. - Updated configurations to include Redis settings. - Enhanced main application with lifespan management for repository initialization. - Created new extras router for handling summary requests. - Refactored summary router to utilize dependency injection for LLM and repository. - Improved request and response schemas for clarity and functionality.
- Added new dependencies: cfgv, distlib, filelock, identify, nodeenv, platformdirs, pre-commit, and ruff to poetry.lock and pyproject.toml. - Updated .gitignore to exclude COMMS.md. - Refactored code for better readability and consistency, including adjustments in configurations and dependency management. - Removed obsolete TODO.md and unused files from the project. - Enhanced error handling in the FastAPI application for OpenAI API interactions. - Improved response schemas for clarity and added examples in the Pydantic models.
- Introduced a comprehensive README_API.md file detailing the API's functionality, setup, and usage. - Added asynchronous support for summary generation in the LLM interface. - Updated summary router to improve parameter handling and error management. - Enhanced example usage in API endpoints for better clarity and usability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a FastAPI-based text summarization service that generates summaries and actionable CTAs using OpenAI's LLM. The implementation follows clean architecture principles with ports/adapters pattern and includes comprehensive error handling and documentation.
Key Features Implemented
Technical Stack
Architecture Highlights
API Endpoints
GET /summary_maker/get_summary_and_ctas- Generate summary and CTAsGET /summary_maker/get_summary_and_ctas_by_id- Retrieve by IDPOST /summary_maker/async_get_summary_and_ctas- Batch async processingGET /extras/get_summaries_ids- List all summary IDsDocumentation
/docs(Swagger UI)Notes