Transform text prompts into captivating short stories using Anthropic's Claude API! Step-by-step, you'll build a short story generation service using FastAPI, configure API requests, and integrate it into a functional web application.
Overview
Syllabus
- Unit 1: Creating and Managing a Story Prompt Template
- Reading and Displaying a Story Prompt Template in Python
- Implementing Prompt Formatting for Story Generation
- Testing Error Handling in PromptManager
- Comprehensive PromptManager Testing
- Unit 2: Building and Managing the Story Manager
- Fix the get_story_by_id Method in StoryManager Class
- Testing the StoryManager with Multiple Stories
- Implementing Error Handling for Invalid Story IDs
- Implementing Keyword Search for Story Manager
- Unit 3: Generating and Managing Stories with the StoryGeneratorService
- Adding Input Validation to StoryGeneratorService
- Implementing Mock Responses for Story Generator Testing
- Implementing Structured Error Logging in the Story Generator Service
- Unit 4: Implementing the Story Generator Controller
- Implementing Input Validation for Story Generator
- Implementing Error Handling in the Story Generator Controller
- Implementing Structured JSON Responses in the Story Generator API
- Creating Integration Tests for Story Generator Controller
- Unit 5: Building a FastAPI Application for the Short Story Generator
- Implementing a Health Check Endpoint in FastAPI
- Implementing CORS for our Story Generation API
- Implementing Custom 404 Error Handler in FastAPI