ml-intern icon indicating copy to clipboard operation
ml-intern copied to clipboard

Add GPT-5.5 and Gemini 3.1 Pro model selectors

Open akseljoonas opened this issue 7 months ago • 6 comments

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.py
  • npm run build

Known unrelated failures

  • UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit fails two existing test_doom_loop.py assertion text expectations.
  • npm run lint fails existing unrelated lint issues in ActivityStatusBar.tsx, agentStore.ts, main.tsx, and logger.ts.

akseljoonas avatar Apr 28 '26 18:04 akseljoonas

Claude encountered an error —— View job


I'll analyze this and get back to you.

github-actions[bot] avatar Apr 28 '26 18:04 github-actions[bot]

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 returned OK.
  • ⚠️ Gemini was tested through the real CLI entrypoint, but this machine has no GEMINI_API_KEY in 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_KEY to 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 ✅

akseljoonas avatar Apr 28 '26 18:04 akseljoonas

Claude encountered an error —— View job


I'll analyze this and get back to you.

github-actions[bot] avatar Apr 28 '26 18:04 github-actions[bot]

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 returned RESOURCE_EXHAUSTED with free-tier quota limit 0 for gemini-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 returned RESOURCE_EXHAUSTED with free-tier quota limit 0 for gemini-2.0-flash.
  • The failed live run exposed that raw provider tracebacks can contain Gemini keys in request URLs. Follow-up commit d1ab7ef adds 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.

akseljoonas avatar Apr 28 '26 18:04 akseljoonas

Claude encountered an error —— View job


I'll analyze this and get back to you.

github-actions[bot] avatar Apr 28 '26 18:04 github-actions[bot]

closed per maintainer request

fglogan avatar May 03 '26 14:05 fglogan