Repository navigation
[SDK] Drop CServe create/update/recipe methods - #159
Merged
Merged
Conversation
…orm API The platform removed the CServe v3 request models and now answers CServe create/update with HTTP 410, so 'from platform_api_python_client import CreateCServeV3DeploymentRequest' fails against clients newer than 4.31.0. Remove the create_cserve, update_cserve and get_cserve_recipe methods and the create_cserve example. Reads (get_cserve) and the CLI display of existing CServe deployments are unchanged. Also supply the now-required cost_per_hr in a HardwareInstanceResponse test fixture. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
michaelshin
approved these changes
Nov 13, 2026
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.
Why
The platform removed the CServe v3 request models (CentML/platform#4881) and CServe create/update now return HTTP 410.
centml/sdk/api.pyhard-importsCreateCServeV3DeploymentRequest, soimport centml.sdk.apiraisesImportErroragainst anyplatform-api-python-clientnewer than 4.31.0 (4.37.1 is merged in platform_api_python_client but not yet released to PyPI). The pin to 4.31.0 hides it for users, but it breaks anything that overlays the newer client, such as the platform e2e suite.What
create_cserve,update_cserve,get_cserve_recipeand theCreateCServeV3DeploymentRequestimport.examples/sdk/create_cserve.py.get_cserveand CLI display of existing CServe deployments (DeploymentType.CSERVE*still exist in the client).cost_per_hrtoHardwareInstanceResponse(needed for 4.37.x, ignored by 4.31.0).Validation
pytest tests: 119 passed againstplatform-api-python-client4.31.0 and against 4.37.1 built from platform_api_python_clientmain. Onmain,import centml.sdk.apifails with the ImportError against 4.37.1.Not included
requirements.txtstill pins 4.31.0. Bumping it needs a platform_api_python_client release newer than v4.31.0 (none since 2026-09-23, so PyPI has no 4.32+); follow-up once that is published.Users calling
create_cserve/update_cserve/get_cserve_recipelose those methods; they already receive HTTP 410 from the API.🤖 Generated with Claude Code