Commit Graph

3 Commits

Author SHA1 Message Date
Teknium
7b044f819e fix(providers): ProviderProfile seam fields are keyword-only
Every field this branch added to ProviderProfile followed main's positional
layout as a positional field, so a dataclass plugin subclass passing its own
option after the released arguments assigned it to account_card instead.
A KW_ONLY sentinel after model_capabilities (main's last field) keeps every
released slot and the subclass's own options where they were.

The compat test now freezes the released positional layout as a literal
instead of deriving it from the new class, which could not catch the shift.
2026-10-26 01:09:35 -07:00
Teknium
70c2919ed3 test(providers): keyword-only profile fields take no positional slot
The positional-construction contract test built one positional value for
every field except supports_streaming. The seam fields added since
(ambient_credentials, picker_catalog, static_models,
catalog_credential_files) are keyword-only for the same reason, so the test
passed them positionally and failed with a TypeError. Select the positional
fields by kw_only; the assertion is unchanged.
2026-10-25 20:55:09 -07:00
Robert Borkowski
81a55437f3 fix(providers): allow external-process plugins to opt into streaming 2026-10-21 23:26:20 -07:00