Files
DeepTutor/tests/services/llm
Bingxi Zhao (Frank) 26500eebfc fix(llm): name the Kimi k3 family once instead of per released id
#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.
2026-09-08 01:10:36 +08:00
..
2026-08-25 02:24:35 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 01:38:54 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-05-01 13:51:45 +08:00