Skip to content

CoreCoder v0.17.0

Choose a tag to compare

@he-yufeng he-yufeng released this 24 Nov 05:52
f70e63a

Model fallback without changing the agent loop

CoreCoder v0.17.0 adds an explicitly configured fallback chain for transient provider failures.

Set CORECODER_FALLBACK_MODELS to an ordered comma-separated list, for example:

export CORECODER_FALLBACK_MODELS=gpt-5.4-mini,deepseek-chat

The default remains a single model. Once configured, CoreCoder switches only after create-time transient retries are exhausted. It does not hide a 400 by switching models, and it does not replay an already-started stream through another model.

Details

  • Supports OpenAI-compatible providers and LiteLLM model strings.
  • Reports the selected fallback on stderr, including model calls made by sub-agents.
  • Tracks usage per serving model so fallback tokens use the correct price table entry.
  • Preserves existing custom scripted LLM interfaces.
  • Updates the bilingual README and source-reading series with the new behavior and boundaries.

Validation

  • PR #82: 14/14 checks passed on the exact head.
  • Merge commit f70e63a409d26a4ff24c77b18a5853930756c525: 14/14 checks passed.
  • Full offline suite: 428 passed, 1 skipped.
  • Ruff: all checks passed.
  • Wheel and sdist built successfully and passed twine check.
  • Fresh wheel installation: 26 packaged Python files matched the merge tree, 42 resource tests passed.
  • Source and installed-wheel CLI runs both recovered through a loopback 429-to-SSE fallback and reported Using fallback model: gpt-4o-mini.

The opt-in live-provider smoke test was not run. All fallback validation used offline fakes or loopback HTTP.