Skip to content

chore: improve fastapi code#216

Open
fredj wants to merge 4 commits into
mainfrom
better_fastapi
Open

chore: improve fastapi code#216
fredj wants to merge 4 commits into
mainfrom
better_fastapi

Conversation

@fredj

@fredj fredj commented Jul 2, 2026

Copy link
Copy Markdown
Member

No description provided.

fredj added 4 commits July 2, 2026 13:12
Replaces manual data: ...\n\n string formatting with fastapi.sse.EventSourceResponse, matching the fastapi skill's SSE streaming convention.
Uses the actual Pydantic model instead of dict[str, Any] so FastAPI validates and documents the field properly.
…s mount

Uses FastAPI's built-in low-priority frontend routing instead of mounting StaticFiles directly, matching the fastapi skill's convention for serving built frontend apps.
Prefer a return type annotation over response_model when the returned type already matches the public schema, per the fastapi skill's convention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants