Skip to content

feat: default API host to platform.lightning.ai - #210

Closed
vivequeramji wants to merge 2 commits into
mainfrom
vivek/platform-api-default
Closed

vivequeramji wants to merge 2 commits into
mainfrom
vivek/platform-api-default

Conversation

@vivequeramji

@vivequeramji vivequeramji commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Default the SDK's API host to https://platform.lightning.ai, as the API moves from lightning.ai/v1 to platform.lightning.ai/v1.

Tracking issue: gridai/16102026-recovery#309 (part of gridai/16102026-recovery#3)
Companion: gridai/grid#48815, the upstream defaults this mirrors.

Changes

  • Python (api/utils.py and the vendored lightning_cloud/env.py), JS (config.ts) and Go (sdkclient) default base URL.
  • Pipeline links use _get_cloud_url() instead of their own lightning.ai fallback.
  • The LLM "is prod" check matches only https://platform.lightning.ai.
  • ssh-gen and ssh-public downloads follow LIGHTNING_CLOUD_URL. They were hard-coded to lightning.ai, and they are control-plane routes the lightning.ai worker does not pass through.
  • Go job and MMT links, sign-up copy, help text and examples.

Notes

  • This PR edits vendored files by hand (lightning_sdk/lightning_cloud/env.py, the same one-line change as grid's lightning-cloud/python/lightning_cloud/env.py), so it carries the vendoring label. Grid's vendoring workflow is currently parked in workflows-disabled.
  • platform.lightning.ai is assumed live and publicly resolving; no legacy-host compatibility is kept. cli-tests and docs-linkcheck (cli) fail only on DNS until it is.
  • python/tests/core/test_teamspace.py set LIGHTNING_CLOUD_URL in patch.dict, but dataset.py reads the import-time env constant, so those tests only passed because the default matched. They now expect the new default.
Verification
  • Python: 2714 passed. The 2 failures (tests/cli/job/test_list.py, table width truncation) fail identically on main.
  • Go: go test ./... passes. JS: 80/80 pass.
  • Ruff: no new findings in the changed files.

The API is moving from lightning.ai/v1 to platform.lightning.ai/v1. Point the
Python, JS and Go defaults at the new host, and have the SSH key downloads
follow LIGHTNING_CLOUD_URL instead of hard-coding lightning.ai.

Part of gridai/16102026-recovery#309.
@vivequeramji vivequeramji added the vendoring Intentionally updates vendored files and bypasses the vendored Cloud guard label Oct 26, 2026
@vivequeramji

Copy link
Copy Markdown
Contributor Author

Superseded by #211, same commits on a branch named viveque/… (corrected spelling of my username). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vendoring Intentionally updates vendored files and bypasses the vendored Cloud guard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant