mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
caption: add image analyze
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -35,17 +35,17 @@ This file is the route registration hub and must be treated as the source of tru
|
||||
For every endpoint, verify in this order:
|
||||
|
||||
1. Route validation:
|
||||
- Route method and path are valid and unique after subpath handling.
|
||||
- Route method and path are valid and unique after subpath handling.
|
||||
2. Handler validation:
|
||||
- Handler call signature is compatible with the route declaration.
|
||||
- Handler call signature is compatible with the route declaration.
|
||||
3. Request signature validation:
|
||||
- Request body or query params implied by handler type hints are consistent with expected client usage.
|
||||
- Request body or query params implied by handler type hints are consistent with expected client usage.
|
||||
4. Response signature validation:
|
||||
- Declared `response_model` is coherent with returned payload shape.
|
||||
- Declared `response_model` is coherent with returned payload shape.
|
||||
5. Auth validation:
|
||||
- Authentication behavior is intentional (`auth=True` default in `add_api_route`).
|
||||
- Authentication behavior is intentional (`auth=True` default in `add_api_route`).
|
||||
6. OpenAPI validation:
|
||||
- OpenAPI schema exposure is correct (including trailing-slash duplicate suppression).
|
||||
- OpenAPI schema exposure is correct (including trailing-slash duplicate suppression).
|
||||
|
||||
## Procedure
|
||||
|
||||
|
||||
@@ -76,9 +76,9 @@ If targets are missing, ask for paths before editing.
|
||||
Extract from user prompt:
|
||||
|
||||
- desired depth mode:
|
||||
- syntax-only: fix markdown syntax/rendering issues only; do not rewrite wording or structure beyond what syntax requires
|
||||
- readability: include syntax fixes plus clarity and scanability edits without broad restructuring
|
||||
- full pass: include syntax, readability, structure normalization, terminology consistency, and broader doc cleanup
|
||||
- syntax-only: fix markdown syntax/rendering issues only; do not rewrite wording or structure beyond what syntax requires
|
||||
- readability: include syntax fixes plus clarity and scanability edits without broad restructuring
|
||||
- full pass: include syntax, readability, structure normalization, terminology consistency, and broader doc cleanup
|
||||
|
||||
If depth is missing, default to readability and state that assumption.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user