Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
remove unused code
Abi Rajac55e5d792314
diff --git a/backend/llm.py b/backend/llm.pyindex cc509cf3..2f35a747 100644--- a/backend/llm.py+++ b/backend/llm.py@@ -22,14 +22,6 @@ class Llm(Enum):CLAUDE_3_5_SONNET_2024_06_20 = "claude-3-5-sonnet-20240620"-def is_openai_model(model: Llm) -> bool:- return model in {- Llm.GPT_4_VISION,- Llm.GPT_4_TURBO_2024_04_09,- Llm.GPT_4O_2024_05_13,- }--# Will throw errors if you send a garbage stringdef convert_frontend_str_to_llm(frontend_str: str) -> Llm:if frontend_str == "gpt_4_vision":diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.pyindex ceb5d56a..c4bccc2c 100644--- a/backend/routes/generate_code.py+++ b/backend/routes/generate_code.py@@ -16,7 +16,6 @@ from custom_types import InputModefrom llm import (Llm,convert_frontend_str_to_llm,- is_openai_model,stream_claude_response,stream_claude_response_native,stream_openai_response,