codeflash-internal/django/aiservice
HeshamHM28 ea23cf06a6
fix: skip Python validation for Java/JS in optimize-line-profiler endpoint (#2478)
## Summary
- Fix `/optimize-line-profiler` endpoint rejecting Java/JS/TS requests
with `"Invalid Python version"` error by moving `parse_python_version()`
and Python syntax validation inside `if is_python:` block
- Fix code extraction regex in Java and JS/TS line profiler optimizers
to handle LLM responses with ```` ```java:FileName.java ```` format
(optional `:filename` suffix)

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: HeshamHM28 <HeshamHM28@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 18:31:08 -07:00
..
aiservice feat: per-function test review + repair endpoints 2026-03-02 08:54:44 -05:00
authapp fix: eliminate redundant DB queries in middleware and unblock LLM responses 2026-02-23 20:43:18 +05:30
core fix: skip Python validation for Java/JS in optimize-line-profiler endpoint (#2478) 2026-03-10 18:31:08 -07:00
tests Merge remote-tracking branch 'origin/main' into testgen-review-repair 2026-03-04 04:10:56 -05:00
.env.example add claude 2025-12-22 03:34:07 -05:00
.pre-commit-config.yaml feat: add ty type checker to pre-k hooks (#2213) 2026-01-09 22:36:53 -05:00
CLAUDE.md docs: restructure CLAUDE.md files into modular rules 2026-02-14 19:36:21 -05:00
deploy Make aiservice deployment use Python 3.12 2024-03-06 18:22:51 -08:00
gunicorn.conf.py Refactor out aiservice manage.py and associated settings to the correct top-level dir so tests can run. Fix ellipsis in AST; allow ellipsis if they are in type annotations. 2024-05-31 16:51:43 -07:00
manage.py ruff check fixes 2025-08-07 14:35:21 -07:00
mypy_allowlist.txt Reorganize top-level feature modules under core/ (#2416) 2026-02-14 17:07:40 -05:00
pyproject.toml Migrate to AWS bedrock (#2430) 2026-02-20 23:52:48 +05:30
pytest.ini Further fix django folder structure so pytest also works 2024-05-31 20:01:51 -07:00
README.md Move codeflash python code base to cli/ 2023-12-29 18:37:49 -08:00
runtests.py Sort imports for generated tests too, also try adding some tests to test this, but spent an hour trying to get the django test runner to work and couldn't get it to find the tests, so punting for now 2024-03-05 16:33:50 -08:00
start_gunicorn.sh let's download at import time instead 2024-09-09 19:59:29 -05:00
uv.lock Migrate to AWS bedrock (#2430) 2026-02-20 23:52:48 +05:30
uvicorn_worker.py ruff check fixes 2025-08-07 14:36:23 -07:00

This is django-ninja project for the ai service. https://django-ninja.dev