Cyfer-ap/AI-Coding-Tutor
1
1from backend.prompts import PROMPT_TEMPLATES, call_llm2 3def optimize_code(user_code, language):4 prompt = PROMPT_TEMPLATES["optimize"].format(code=user_code, lang=language)5 return call_llm(prompt)6 1from backend.prompts import PROMPT_TEMPLATES, call_llm2 3def optimize_code(user_code, language):4 prompt = PROMPT_TEMPLATES["optimize"].format(code=user_code, lang=language)5 return call_llm(prompt)6