diff --git a/codeaide/utils/api_utils.py b/codeaide/utils/api_utils.py index 3ab244b..ceca5a0 100644 --- a/codeaide/utils/api_utils.py +++ b/codeaide/utils/api_utils.py @@ -41,40 +41,20 @@ def parse_response(response): if not response or not response.content: return None, None, None, None, None, None - content = response.content[0].text - - def extract_json_field(field_name, content, is_code=False): - pattern = rf'"{field_name}"\s*:\s*"((?:\\.|[^"\\])*)"' - match = re.search(pattern, content, re.DOTALL) - if match: - field_content = match.group(1) - if is_code: - # For code, replace escaped newlines with actual newlines, but only within strings - field_content = re.sub(r'(?