Skip to content

feat(custom-models): add CustomModel.derived_capabilities; release 0.3.1 - #20

Merged
kunwar-vp merged 2 commits into
mainfrom
fix/custom-model-derived-capabilities
Nov 5, 2026
Merged

kunwar-vp merged 2 commits into
mainfrom
fix/custom-model-derived-capabilities

Conversation

@kunwar-vp

@kunwar-vp kunwar-vp commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Customers on 0.3.0 hit capabilities.0 Input should be 'tool_calling', 'vision', 'embedding' or 'reasoning' on custom-model get/refresh/list for vision models, because graphn-cp started returning architecture-derived capabilities (image_input, video_input, thinking).

That is fixed in the API (voltagepark/takao#3678, live in prod, OpenAPI 0.38.0): capabilities stays within the Capability enum, and the full set moved to a new open field, derived_capabilities. Verified against prod with this repo's 0.3.0 on a Qwen2-VL model: get/refresh/list succeed, and the pre-fix response shape still raises the original error.

This PR exposes the new field as a typed attribute and releases 0.3.1. No customer needs it to be unblocked.

What changes

  • CustomModel.derived_capabilities: list[str] | None (open-ended; None from control planes before 0.38.0). Capability stays a Literal, matching the spec.
  • asyncio_default_fixture_loop_scope = "function" in the pytest config. CI now installs pytest 9.2.0, where pytest-asyncio's "unset" warning plus filterwarnings = error aborted the run with an INTERNALERROR before any test ran; main would fail the same way. function is the scope the tests already use.
  • Version 0.3.0 → 0.3.1 in pyproject.toml and _version.py, plus the CHANGELOG section, so merging auto-tags v0.3.1 and publishes to PyPI.

How to verify

  • ruff check src tests, ruff format --check src tests, pytest: 111 pass.
  • New tests: refresh returns both fields; a response without derived_capabilities (older control plane) yields None.

Companion

  • voltagepark/takao#3678 (API fix + spec)
  • voltagepark/agent-foundry#3195 (web reads derived_capabilities)

@kunwar-vp
kunwar-vp merged commit 79b9318 into main Nov 5, 2026
7 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