Skip to content

feat: expose missing typed model/features listing fields #112#113

Merged
ypldan merged 1 commit into
developmentfrom
feat/sync-listing-fields
Jun 26, 2026
Merged

feat: expose missing typed model/features listing fields #112#113
ypldan merged 1 commit into
developmentfrom
feat/sync-listing-fields

Conversation

@ypldan

@ypldan ypldan commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Applicable issues

Description of changes

Expose listing fields that DIAL Core returns as first-class typed Pydantic fields. They previously only passed through via extra="allow", so they were untyped, unvalidated, and undocumented.

  • ModelInfo.embedding_dimensions — vector size for embedding models (omitted otherwise).
  • Features.chat_completion, Features.responses_api — available-endpoint flags.
  • Features.reasoning_efforts: list[str] — supersedes the old reasoning_efforts_supported boolean.
  • Features.max_tokens_supported, max_completion_tokens_supported, custom_temperature_supported — pre-existing drift behind Core.

Defaults stay compatible with older Core versions: booleans default to None, reasoning_efforts defaults to [] (Core always emits it as an array). README sample responses updated for the new fields.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Add typed Pydantic fields for model/features listing fields that DIAL
Core returns but the client only accepted via extra-field passthrough:

- ModelInfo.embedding_dimensions
- Features.chat_completion, Features.responses_api
- Features.reasoning_efforts (supersedes reasoning_efforts_supported)
- Features.max_tokens_supported, max_completion_tokens_supported,
  custom_temperature_supported (pre-existing drift)

Document the new fields in the README sample responses.
@ypldan ypldan requested a review from adubovik as a code owner June 26, 2026 09:19
@ypldan ypldan changed the title feat: expose typed model/features listing fields feat: expose typed model/features listing fields #112 Jun 26, 2026
@ypldan ypldan changed the title feat: expose typed model/features listing fields #112 feat: expose missing typed model/features listing fields #112 Jun 26, 2026
@ypldan ypldan merged commit b353ffa into development Jun 26, 2026
12 of 13 checks passed
@ypldan ypldan deleted the feat/sync-listing-fields branch June 26, 2026 09:45
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.

feat: expose typed model/features listing fields added in DIAL Core

2 participants