update swagger docs

Signed-off-by: Vladimir Mandic <mandic00@live.com>
pull/4252/head
Vladimir Mandic 2025-10-07 08:21:05 -04:00
parent fe41d7da2a
commit 25e28050c3
3 changed files with 10504 additions and 873 deletions

View File

@ -92,6 +92,7 @@
- **nunchaku** update to `1.0.1` and enhance installer
- **xyz-grid** add guidance section
- **preview** implement configurable layers for WAN, Qwen, HV
- update swagger `/docs` endpoint style
- **Video**
- use shared **T5** text encoder for video models when possible
- use shared **LLama** text encoder for video models when possible

File diff suppressed because it is too large Load Diff

View File

@ -47,9 +47,7 @@ def get_swagger_ui_html(*,
],
})"""
if init_oauth:
html += f"""
ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))})
"""
html += f"ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))})"
html += """
</script>
</body>
@ -74,8 +72,9 @@ def create_docs(app: FastAPI):
title=f'{app.title}: Swagger UI',
openapi_url=app.openapi_url,
swagger_favicon_url='/file=html/favicon.svg',
swagger_css_url='/file=html/swagger.css',
swagger_ui_parameters=swagger_ui_parameters,
swagger_extra_css_url='file=html/swagger.css',
# swagger_extra_css_url='file=html/swagger.css',
)
# res = inject_css(html.content, 'html/swagger.css')
return res