Repository navigation
revert(OMN-12664): revert #1859 hardcoded Gemini URL in bifrost config loader - #1863
Conversation
|
Warning Review limit reached
More reviews will be available in 41 minutes and 8 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Reverts #1859 (squash commit
73af6fa151295ef39fdc97265374eb8b797a12ce, merged todevat 2026-06-04T03:40:13Z).#1859 hardcoded a provider-specific full Gemini endpoint path
https://generativelanguage.googleapis.com/v1beta/openai/chat/completionsas the
default_urlinconfig_loader_bifrost.py, and added a URL-shapepredicate in
handler_bifrost_gateway.py(routing "complete chat endpoint"URLs through
endpoint_urlto skip the path append). That bakes one provider'sURL shape into the config loader and gateway, which is the provider-coupling we
do not want in the codebase.
This revert restores
devto its exact pre-#1859 state:config_loader_bifrost.pyGeminidefault_urlreturns to the provider-agnosticbare origin
https://generativelanguage.googleapis.com(the value present in theparent commit
d30f05d).handler_bifrost_gateway.pyloses the/chat/completions//completionsURL-shapepredicate.
test_bifrost_endpoint_preservation.pyis removed and thetest_config_loader_bifrost.pyadditions are reverted.The forward fix is a provider-agnostic, table-driven endpoint rewrite (tracked
under OMN-12664); it will replace #1859's approach without hardcoding any single
provider's path shape.
Cites OMN-12664.
dod_evidence
73af6fa151295ef39fdc97265374eb8b797a12ce(squash, single parentd30f05d)2be57777b22c8025da137a7a237e13194938d953…/v1beta/openai/chat/completionsconfirmed gone fromconfig_loader_bifrost.py(grep generativelanguageshows only the restoredbare-origin default, which is pre-existing pre-fix(OMN-12664): preserve full Gemini endpoint path in bifrost gateway #1859 state).
handler_bifrost_gateway.py.uv run ruff format src/ tests/— 4025 files unchanged (no reformat needed).uv run ruff check --fixon node_llm_inference_effect src + tests — All checks passed.uv run mypy --strictonconfig_loader_bifrost.py+handler_bifrost_gateway.py—Success: no issues found in 2 source files.
uv run pytest tests/unit/nodes/node_llm_inference_effect/— 455 passed.pre-commit run --files <changed>— all hooks Passed/Skipped, no failures.Scope note: the full repo suite was not run (large); the node_llm_inference_effect +
bifrost unit tests (455) plus targeted mypy/ruff/pre-commit cover the reverted surface.
Deploy posture (OMN-10489)
This PR touches runtime handler paths under
node_llm_inference_effect/handlers/bifrost/, so the deploy-gate applies. The deploy DoD evidence for the LLMendpoint_urlruntime surface is owned by OMN-10489 (dod-deploy), the same deploy-evidence ticket the forward fix #1859 cited. This is a revert that restores the prior on-devruntime state; no new deploy is performed by this PR (code + PR only, per session policy). The runtime redeploy ofdevremains governed by OMN-10489.Evidence-Source: OCC#2148
Evidence-Ticket: OMN-12664