mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 08:49:42 +08:00
#1227 is #938 again, one model id later. ``k3`` had an exact-match rule and its own entry in the vendor-detection list; ``k3-256k`` shipped afterwards, matched neither, and every call to it came back HTTP 400 "invalid temperature: only 1 is allowed for this model". Adding a third literal fixes today's id and leaves the next one — ``k3-1m``, ``k3-turbo`` — to fail the same way and be reported a third time. So state the family instead of enumerating its members. ``_matches_model_family`` is the one place that decides what ``k3`` covers (the bare id, or the id plus a dash suffix), and both callers ask it: the request-parameter overrides, and ``find_by_model``, which is what carries the limit when the user picked a generic OpenAI binding. The ``=exact`` pattern kind had no other user, so it is gone rather than left as a second way to spell almost the same thing. The replaced test pinned ``k3-256kx`` as a non-match, which was the old mechanism showing through rather than a behaviour anyone wants; the short ids the rule actually has to exclude — ``sk3``, ``k30``, ``k3x`` — still do not match.