Skip to content

[Bugfix][Router] Remove input-only QPS fallback - #11

Merged
Levi080513 merged 2 commits into
neutreefrom
codex/fix-prefix-input-fallback
Nov 12, 2026
Merged

Levi080513 merged 2 commits into
neutreefrom
codex/fix-prefix-input-fallback

Conversation

@Levi080513

@Levi080513 Levi080513 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

PrefixAware silently routes input-only requests by QPS even though they have no text prefix. Remove that local fallback and restore the existing messages/prompt input contract. Input-only and audio endpoints must use a routing policy suited to their payload; passthrough routing and discovery remain unchanged.

Refs NEU-869. Follow-up to #9.

Existing input/audio forwarding tests use RoundRobin instead of relying on the removed fallback. This change preserves the existing missing-prompt error and introduces no new HTTP error mapping.

Unit test

  • PYTHONPATH=src python -m pytest -q src/tests: 98 passed on Python 3.12.13.
  • pre-commit run --all-files: passed.
  • Ruff 0.12.0 check src and git diff --check: passed.

DB test

Not applicable; no database changes.

E2E test

Not run locally; no environment or image deployment. Router E2E workflows skip Draft PRs. Independent manual verification is not needed for this four-line fallback removal; existing forwarding and passthrough tests pass.

Checklist

  • Applicable pre-commit checks pass.
  • Commits include DCO Signed-off-by.
  • Router change classified in the PR title.

Restore the messages/prompt contract instead of silently routing input-only requests by QPS. Keep input and audio forwarding tests on RoundRobin and cover the unsupported PrefixAware input directly.

Refs NEU-869

Signed-off-by: huangwei <wei.huang@smartx.com>
Signed-off-by: huangwei <wei.huang@smartx.com>
@Levi080513
Levi080513 marked this pull request as ready for review November 12, 2026 09:49
@Levi080513
Levi080513 merged commit 2a1bb7a into neutree Nov 12, 2026
9 of 10 checks passed
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.

1 participant