Skip to content

Azure/Kimi models not routed correctly; DB overrides ignored by algorithm #386

@shroominic

Description

@shroominic

Two issues in the model routing algorithm:

  1. Deployment-based providers (Azure, Kimi) whose models aren't discovered at runtime are skipped even if DB overrides exist for them.
  2. Model deduplication doesn't account for provider identity, so overrides can be silently dropped.

Fix: include enabled DB overrides when the provider is known, and deduplicate by (model_id, provider_identity).

Files: `routstr/algorithm.py`, `routstr/upstream/azure.py`, `routstr/upstream/base.py`, `routstr/upstream/helpers.py`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions