Refresh API specs, add query parameter support, bump to 0.10.0#12
Open
cretz wants to merge 2 commits into
Open
Refresh API specs, add query parameter support, bump to 0.10.0#12cretz wants to merge 2 commits into
cretz wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the SDK to match refreshed OpenAPI specs and cuts a new 0.9.1 release by regenerating the management/inference clients & models, updating the apigen post-processor, and aligning tests with new API constraints.
Changes:
- Bump package version to
0.9.1and update lockfile. - Update OpenAPI specs and regenerate management API models/client, including new resources (e.g., endpoints, metrics/log query filters, patches, etc.).
- Extend model config schema/models (e.g.,
EgressRestrictions) and adjust apigen post-processing for nested bracket cases.
Reviewed changes
Copilot reviewed 9 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Updates editable package version to 0.9.1. |
| pyproject.toml | Bumps SDK version to 0.9.1. |
| tests/client/test_management.py | Updates test fixture to include newly-required Secret.id. |
| scripts/apigen/specs/inference.json | Updates inference auth scheme to BearerAuth and updates security scheme definition. |
| scripts/apigen/specs/config.schema.json | Adds EgressRestrictions schema and extends weights source scheme docs (cw://). |
| scripts/apigen/postprocess.py | Tweaks RootModel postprocessing regex to better handle nested brackets / class boundaries. |
| baseten/client/modelconfig/_models.py | Adds EgressRestrictions model and wires it into Runtime. |
| baseten/client/modelconfig/init.py | Exports EgressRestrictions. |
| baseten/client/managementapi/_models.py | Large regen: adds/updates many schemas (secrets, logs/metrics requests, endpoints, patching, etc.). |
| baseten/client/managementapi/_client.py | Large regen: adds/updates endpoints and request methods (sync + async). |
| baseten/client/managementapi/init.py | Updates export surface to include newly generated models. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 What
request=model of their query parameters (pagination, filters, log/metric ranges, etc.), which was previously ungenerated and unusablebodykwarg torequestfor non-GET API calls💥 Two backwards-incompatible changes mentioned below
💻 How
*Requestschema per GET operation's query params (named after the method, e.g.get_users->GetUsersRequest), reusing each param's own schema so datamodel-code-generator types every field (enums, arrays, nullable, constraints) and shares existing enum modelsexclude_unsetso only caller-set fields go on the wire and the server applies its own defaultsbody=keyword argument torequest=on every client method🔬 Testing
limitis dropped) and for omitting the request entirelytrue/falsefor bools, enum values, and omitted-means-server-default