Commit ca0f563
Make ModelCapabilities.from_dict defensive for missing fields
The runtime may return models (e.g. embedding models) where 'limits'
or 'supports' are absent. Default to empty objects instead of raising
ValueError, matching the lenient behavior in Go/C#/TypeScript SDKs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 19d5a39 commit ca0f563
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 392 | + | |
| 393 | + | |
399 | 394 | | |
400 | 395 | | |
401 | 396 | | |
| |||
0 commit comments