Browse Source

Improve style

Rodrigo Agundez 3 months ago
parent
commit
7e97e9dcc9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      backend/open_webui/routers/images.py

+ 1 - 3
backend/open_webui/routers/images.py

@@ -3,9 +3,7 @@ import base64
 import io
 import json
 import logging
-import mimetypes
 import re
-import uuid
 from pathlib import Path
 from typing import Optional
 
@@ -456,7 +454,7 @@ async def image_generations(
                 requests.post,
                 url=f"{request.app.state.config.IMAGES_OPENAI_API_BASE_URL}/images/generations",
                 json=data,
-                headers=headers,    
+                headers=headers,
             )
 
             r.raise_for_status()