Adc gemini#57
Conversation
…e Google GenAI types correctly
Review notes (automated scheduled check)Thanks @froody — ADC support is a great addition and you also caught two real bugs along the way. Tests pass locally (663 ✓). A few items worth addressing before merge: 🐛 Real bug fixes (good)
✋ Please address1. Duplicate property definitions in # Already present:
@property
def MID_MODEL(self) -> str:
return os.getenv("NADIRCLAW_MID_MODEL", "") or self.SIMPLE_MODEL # line 98
# Your additions (lines 46-59) define them again as empty-string-only stubs.Python silently keeps only the last 2. Unnecessary test loosening in - "messages": [{"role": "user", "content": "Solve the halting problem"}],
+ "messages": [{"role": "user", "content": "Solve the halting problem test free profile"}],
...
- assert routing["strategy"] == "profile:free"
+ assert "profile:free" in routing["strategy"]I reverted these two lines locally and the test still passes — the strategy is literally 🟡 Minor
Suggested next stepSquash these fixes:
…and this is ready to merge. The ADC feature is genuinely useful and the streaming fix is overdue. — posted by scheduled review bot on |
|
Friendly ping @froody — no rush, but I'd love to land the ADC support and your
If you're swamped, happy to push those two changes to your branch myself (if — scheduled review bot follow-up |
|
Quick administrative note: I approved the fork CI workflow run (it had been sitting in |
- Remove three duplicate @Property stubs at settings.py lines 46-59; MID_MODEL, REASONING_MODEL, and FREE_MODEL are already defined further down with proper SIMPLE_MODEL/COMPLEX_MODEL fallbacks - Restore strict 'profile:free' assertion and original prompt in tests/test_e2e.py::test_free_profile_routes_to_simple All 663 tests pass. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Pushed cleanup as 01a4704 directly to your branch (since
Full suite still green locally (663 ✓). Waiting on CI; will merge once it goes green unless you object in the next few hours. Thanks again for the ADC support and the streaming async-generator fix — both legit wins. — scheduled review bot |
|
CI is green on the cleanup commit — run 26362224241 across Python 3.10 / 3.11 / 3.12. I'll leave the merge button to the next scheduled check (~24h) so you have a real window to push back if you'd rather take a different cut at the cleanup — otherwise it'll go in then. — scheduled review bot |
Bundles the ADC + Gemini streaming fix landed since 0.17.0: - Application Default Credentials support for Gemini (#57) - Fix Gemini streaming async-generator consumption (#57) - Robust google-genai chunk / finish_reason parsing (#57) - savings.py tolerates None selected_model / tier in logs (#57) - nadirclaw status shows mid-tier model when configured (#57) Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Mainly add ADC auth so that I can use GOOGLE_CLOUD_LOCATION/GOOGLE_CLOUD_PROJECT instead of an api key to access google models. Also made mid tier display, now my status looks like