Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
fix another type ignore
Abi Raja7cd9b294c350
diff --git a/backend/image_generation.py b/backend/image_generation.pyindex c99dd402..e3f609f2 100644--- a/backend/image_generation.py+++ b/backend/image_generation.py@@ -24,15 +24,14 @@ async def generate_image(prompt: str, api_key: str, base_url: str | None) -> Union[str, None]:client = AsyncOpenAI(api_key=api_key, base_url=base_url)- image_params: Dict[str, Union[str, int]] = {- "model": "dall-e-3",- "quality": "standard",- "style": "natural",- "n": 1,- "size": "1024x1024",- "prompt": prompt,- }- res = await client.images.generate(**image_params) # type: ignore+ res = await client.images.generate(+ model="dall-e-3",+ quality="standard",+ style="natural",+ n=1,+ size="1024x1024",+ prompt=prompt,+ )await client.close()return res.data[0].url