- 08 May, 2026 7 commits
-
-
方海彤 authored
- Updates the default `API_URL` and port from `8088` to `8317` in `ai_review/config.py` and documentation to align with CLIProxyAPI defaults. - Replaces the custom `proxy/codex_proxy.py` and launchd plist with a new configuration example for `CLIProxyAPI` (`proxy/cliproxyapi.config.example.yaml`). - Updates `README.md` with instructions for installing and configuring `CLIProxyAPI` via Homebrew, including OAuth login and API key setup. - Adjusts environment variable documentation to reflect that `AI_REVIEW_API_KEY` is now required by the new proxy configuration.
-
方海彤 authored
Removes the Feishu notification step when there are no code changes to review. The process now simply prints a skip message and exits to reduce unnecessary notifications.
-
方海彤 authored
Introduces `find_symbol_references` in `ai_review/git.py` to detect deleted symbols within a diff and search for remaining references across the repository using `git grep`. This provides the LLM with factual context to determine if callers have been properly updated, reducing "hallucinated" risks regarding unsynchronized changes. Key changes: - Implements heuristic-based symbol extraction for deleted lines (supporting Kotlin, Java, Swift, JS/TS, etc.). - Filters out references within the files already modified in the current diff. - Appends a formatted "Symbol Reference Context" block to both standard and deep review prompts. - Limits analysis to the first 8 symbols and 20 references per symbol to manage prompt size.
-
方海彤 authored
Improved the accuracy of risk level assessment from LLM responses by implementing a prioritized detection strategy: 1. Matches leading "
✅ " for skipped or passed reviews. 2. Specifically searches for an emoji (✅ ,⚠ ️, or🚨 ) within a "Risk Level" line. 3. Implements a fallback that checks for actual list items within the "High Risk" section to avoid false positives triggered by section headers. -
方海彤 authored
Updates the default configuration and documentation to prioritize the local codex proxy over public cloud endpoints. - **Config**: Changes default `AI_REVIEW_API_URL` to `http://localhost:8088/v1/chat/completions`. - **Models**: Updates default `MODEL` and `TRIAGE_MODEL` to `gpt-5.5` and `gpt-5.4-mini` respectively to align with codex naming conventions. - **LLM**: Refines thinking mode logic to send hint parameters (`enable_thinking`, `thinking_budget`) to OpenAI-compatible gateways while maintaining compatibility with proxies that ignore these fields. - **Documentation**: Updates `README.md` with detailed instructions for codex proxy deployment, including model resolution rules and GitLab CI variable configuration. - **Timeouts**: Increases default `AI_REVIEW_DEEP_TIMEOUT` to 600 seconds in the documentation.
-
方海彤 authored
Updates `call_llm` to return both the content and the actual model name returned by the API. This ensures that the review summary and notifications display the real model used (e.g., "codex" when using a local proxy) rather than static configuration values. Updated `main.py` to propagate and display these dynamic model names in the final report.
-
方海彤 authored
-
- 08 Apr, 2026 2 commits
-
-
tongzifang authored
Updates the default `DEEP_TIMEOUT` value from 300 to 600 seconds in `ai_review/config.py` to allow more time for deep review processing.
-
tongzifang authored
Introduces `_strip_thinking` to remove reasoning segments from the LLM output. This handles `<think>` tags, residual `</think>` tags, and plain-text thinking prefixes to ensure only the final review content is returned. It also prioritizes `reasoning_content` when provided by OpenAI-compatible gateways.
-
- 07 Apr, 2026 2 commits
-
-
tongzifang authored
The CU Cloud gateway base URL is /v1 but the actual endpoint needs /chat/completions appended. Auto-detect and append when missing. Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com> -
tongzifang authored
The gateway returns HTTP 404 because qwen3.5-plus and qwen3-coder-plus are not valid model IDs. Updated defaults to Qwen3.5-397B-A17B and Qwen3-235B-A22B which are available on the CU Cloud gateway. Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
-
- 30 Mar, 2026 3 commits
-
-
tongzifang authored
-
tongzifang authored
-
tongzifang authored
-