Skip to content

[Vast.ai] Allow to set community_cloud to false#218

Open
peterschmidt85 wants to merge 3 commits intomainfrom
feat/vastai-community-default
Open

[Vast.ai] Allow to set community_cloud to false#218
peterschmidt85 wants to merge 3 commits intomainfrom
feat/vastai-community-default

Conversation

@peterschmidt85
Copy link
Contributor

@peterschmidt85 peterschmidt85 commented Mar 5, 2026

Support community_cloud property with the vastai provider allowing to filter Server Cloud offers only by setting community_cloud to false.

Keep server-only behavior when disabled, and add tests for the new default and enabled filter semantics.

Made-with: Cursor
@peterschmidt85 peterschmidt85 changed the title Update VastAI community cloud scope behavior [Vast.ai] Allow to set community_cloud to false Mar 5, 2026
Default behavior remains server+community offers. Set community_cloud=false to restrict to server cloud only.

Made-with: Cursor
def __init__(
self,
extra_filters: Optional[dict[str, dict[Operators, FilterValue]]] = None,
community_cloud: bool = True,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) The community_cloud parameter appears to be redundant, I think dstack could just pass the "datacenter" filter in extra_filters

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