Skip to content

Commit b353ffa

Browse files
authored
feat: expose missing typed model/features listing fields #112 (#113)
1 parent dd6dc6d commit b353ffa

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ Deployment(
249249
url_attachments=False,
250250
folder_attachments=False,
251251
allow_resume=True,
252+
chat_completion=True,
253+
responses_api=False,
254+
reasoning_efforts=["low", "medium", "high"],
252255
),
253256
defaults={},
254257
)
@@ -806,6 +809,9 @@ As a result, you will receive a list of `Application` objects:
806809
url_attachments=False,
807810
folder_attachments=False,
808811
allow_resume=True,
812+
chat_completion=True,
813+
responses_api=False,
814+
reasoning_efforts=[],
809815
),
810816
input_attachment_types=["image/png", "text/txt", "image/jpeg"],
811817
defaults={},
@@ -877,6 +883,8 @@ ModelInfo(
877883
)
878884
```
879885

886+
For embedding models, `ModelInfo` also includes `embedding_dimensions` — the size of the output vector (e.g. `embedding_dimensions=1536`). It is omitted for non-embedding models.
887+
880888
### User
881889

882890
#### Get Authenticated User Info

aidial_client/types/deployment.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ class Features(ExtraAllowModel):
2626
auto_caching: bool | None = None
2727
assistant_attachments_in_request: bool | None = None
2828
mcp: bool | None = None
29+
chat_completion: bool | None = None
30+
responses_api: bool | None = None
31+
max_tokens_supported: bool | None = None
32+
max_completion_tokens_supported: bool | None = None
33+
custom_temperature_supported: bool | None = None
34+
reasoning_efforts: list[str] = []
2935

3036

3137
class DeploymentBase(ExtraAllowModel):

aidial_client/types/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class ModelInfo(ExtraAllowModel):
4141
updated_at: int | None = None
4242
lifecycle_status: str | None = None
4343
tokenizer_model: str | None = None
44+
embedding_dimensions: int | None = None
4445
capabilities: ModelCapabilities | None = None
4546
limits: ModelLimits | None = None
4647
pricing: ModelPricing | None = None

0 commit comments

Comments
 (0)