Skip to content

OPS-24224 upstream sync#32

Merged
ernest-gonzales merged 5 commits intomainfrom
OPS-24224-upstream-sync
Mar 31, 2026
Merged

OPS-24224 upstream sync#32
ernest-gonzales merged 5 commits intomainfrom
OPS-24224-upstream-sync

Conversation

@ernest-gonzales
Copy link
Copy Markdown

No description provided.

arynyklas and others added 5 commits March 24, 2026 23:19
Add support for OLLAMA.API_KEY configuration to enable authentication
with Ollama Cloud (ollama.com). Previously only local Ollama instances
were supported without authentication.

- Pass api_key to litellm completion calls when configured
- Update secrets template with documentation for the new api_key field
- Clarify api_base comment to distinguish between Ollama Cloud and local
Fix a few unambiguous spelling, punctuation, and grammar issues
in prompt text, comments, docs, and related configuration help text.

These changes are documentation-only and do not affect runtime behavior.
* feat: sanitize changes diagram input and add unit tests

* fix: add input validation to sanitize_diagram function

* fix: update sanitize_diagram to require mermaid code fence

* fix: refactor sanitize_diagram to improve readability and maintainability

* fix: reorder imports to follow isort convention in test_pr_description

* fix: clean up sanitize_diagram function and remove unnecessary imports in test_pr_description
Hoisted `RE_HUNK_HEADER` regex compilation to the module level in `pr_agent/algo/git_patch_processing.py`. This avoids redundant compilation and internal cache lookups on every call to patch processing functions like `extend_patch`, `omit_deletion_hunks`, and `extract_hunk_lines_from_patch`.

Average time per iteration for `extend_patch` showed a stable performance.
In a benchmark of 10,000 iterations, the total time was ~21.9 seconds.

Verified that all relevant unit tests pass.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: rynomster <6912789+rynomster@users.noreply.github.com>
@ernest-gonzales ernest-gonzales changed the title Ops 24224 upstream sync OPS-24224 upstream sync Mar 31, 2026
@ernest-gonzales ernest-gonzales merged commit a12d185 into main Mar 31, 2026
@ernest-gonzales ernest-gonzales deleted the OPS-24224-upstream-sync branch March 31, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants