Skip to content

Conversation

@jvstme
Copy link
Collaborator

@jvstme jvstme commented Jan 14, 2026

Since only newer CLIs can correctly display
InstanceAvailability.NO_BALANCE, replace
NO_BALANCE with NOT_AVAILABLE in server
responses for older clients for the following API
methods:

  • /api/project/{project_name}/fleets/get_plan
  • /api/project/{project_name}/runs/get_plan
  • /api/project/{project_name}/gpus/list

Additionally, refactor the code to make it easy to retrieve the client version using FastAPI
dependencies.

client_version: Annotated[Optional[Version], Depends(get_client_version)]

Part of #3458

Checklist:

Since only newer CLIs can correctly display
`InstanceAvailability.NO_BALANCE`, replace
`NO_BALANCE` with `NOT_AVAILABLE` in server
responses for older clients for the following API
methods:

- `/api/project/{project_name}/fleets/get_plan`
- `/api/project/{project_name}/runs/get_plan`
- `/api/project/{project_name}/gpus/list`

Additionally, refactor the code to make it easy to
retrieve the client version using FastAPI
dependencies.

```python
client_version: Annotated[Optional[Version], Depends(get_client_version)]
```
@jvstme jvstme requested a review from un-def January 14, 2026 17:02
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.

2 participants