refac
This commit is contained in:
@@ -609,6 +609,9 @@ async def get_model_profile_image(
|
||||
|
||||
# only serve known-safe raster types inline; reject SVG/unknown (can run script on our origin)
|
||||
if media_type not in PROFILE_IMAGE_ALLOWED_MIME_TYPES:
|
||||
# LICENSE covers this Open WebUI fallback logo.
|
||||
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
# https://docs.openwebui.com/license.
|
||||
return RedirectResponse(
|
||||
url='/static/favicon.png',
|
||||
status_code=status.HTTP_302_FOUND,
|
||||
@@ -636,6 +639,9 @@ async def get_model_profile_image(
|
||||
status_code=status.HTTP_302_FOUND,
|
||||
)
|
||||
|
||||
# LICENSE covers this Open WebUI fallback logo.
|
||||
# Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
# https://docs.openwebui.com/license.
|
||||
return RedirectResponse(
|
||||
url='/static/favicon.png',
|
||||
status_code=status.HTTP_302_FOUND,
|
||||
|
||||
Reference in New Issue
Block a user