ml-intern
ml-intern copied to clipboard
Add GPT-5.5 and Gemini 3.1 Pro model selectors
Summary
- add GPT-5.5 (high) and Gemini 3.1 Pro to the frontend model selector and backend allowlist
- add Gemini direct-provider LiteLLM routing and effort validation
- add CLI /model suggestions plus shared default-effort handling so GPT-5.5 uses high when the global preference is max
- document the Gemini CLI model id
Verification
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit/test_llm_params.py tests/unit/test_cli_rendering.pynpm run build
Known unrelated failures
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unitfails two existingtest_doom_loop.pyassertion text expectations.npm run lintfails existing unrelated lint issues inActivityStatusBar.tsx,agentStore.ts,main.tsx, andlogger.ts.
Live CLI validation update:
- ✅ GPT-5.5 was tested with the real local OPENAI_API_KEY from .env:
UV_CACHE_DIR=/tmp/uv-cache uv run ml-intern --model openai/gpt-5.5 --max-iterations 1 --no-stream 'Reply with exactly: OK'Result: completed successfully and returnedOK. - ⚠️ Gemini was tested through the real CLI entrypoint, but this machine has no
GEMINI_API_KEYin env or .env. The command reached provider auth and failed with the expected missing/invalid API key error:UV_CACHE_DIR=/tmp/uv-cache uv run ml-intern --model gemini/gemini-3.1-pro-preview --max-iterations 1 --no-stream 'Reply with exactly: OK' - Follow-up commit adds
GEMINI_API_KEYto README setup and to the friendly auth error text.
Additional checks after the follow-up:
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit/test_llm_params.py tests/unit/test_cli_rendering.py tests/unit/test_llm_error_classification.py✅npm run build✅
Additional Gemini live validation:
- Tried the supplied Gemini key with the selector model via the real CLI:
ml-intern --model gemini/gemini-3.1-pro-preview --max-iterations 1 --no-stream 'Reply with exactly: OK'Result: authenticated/reached Google, but Google returnedRESOURCE_EXHAUSTEDwith free-tier quota limit0forgemini-3.1-pro. - Tried a lower-tier Gemini model as requested:
ml-intern --model gemini/gemini-2.0-flash --max-iterations 1 --no-stream 'Reply with exactly: OK'Result: authenticated/reached Google, but Google returnedRESOURCE_EXHAUSTEDwith free-tier quota limit0forgemini-2.0-flash. - The failed live run exposed that raw provider tracebacks can contain Gemini keys in request URLs. Follow-up commit
d1ab7efadds Gemini key redaction and maps quota/rate-limit failures to a friendly error instead of raw traceback output.
Checks after the fix:
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit/test_llm_error_classification.py tests/unit/test_redact.py tests/unit/test_llm_params.py tests/unit/test_cli_rendering.py✅npm run build✅
Security note: the Gemini key used for validation was pasted into chat and appeared in an upstream traceback before the redaction fix; it should be rotated.
closed per maintainer request