Skip to content

feat: per-tier endpoint routing - #51

Merged
Doorman11991 merged 1 commit into
Doorman11991:masterfrom
nonlooped:feat/per-tier-endpoint-routing
May 27, 2026
Merged

feat: per-tier endpoint routing#51
Doorman11991 merged 1 commit into
Doorman11991:masterfrom
nonlooped:feat/per-tier-endpoint-routing

Conversation

@nonlooped

Copy link
Copy Markdown
Contributor

Fixes #50

Summary

  • Route each model tier to its own OpenAI-compatible endpoint via SMALLCODE_BASE_URL_* or [models.*] in smallcode.toml
  • Resolve model + URL per request (activeModelTarget); auth follows the selected endpoint
  • Env-first primary config; TOML tier sections always merge; env tier vars override TOML

Test plan

  • npm test (90/90)
  • Local default + OpenRouter strong tier smoke test
  • Adaptive escalation hits configured OpenRouter URL

Release note for maintainer

Suggest v1.3.0 (minor). CHANGELOG is under ## Unreleased; no version bump in this PR.

Route each model tier to its own OpenAI-compatible endpoint via
SMALLCODE_BASE_URL_* env vars or [models.*] sections in smallcode.toml.
Requests resolve model + URL per tier; auth follows the selected endpoint.
@Doorman11991
Doorman11991 merged commit ea7a580 into Doorman11991:master May 27, 2026
6 checks passed
@Doorman11991

Copy link
Copy Markdown
Owner

Thank you.

Kothulhu94 pushed a commit to Kothulhu94/smallcode that referenced this pull request May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local Model + OpenRouter

2 participants