fix(sdk): default both SDKs to the www.sim.ai host - #8581
Conversation
The apex https://sim.ai answers every request with a 301 to https://www.sim.ai, and fetch and requests replay a 301 POST as a GET with no body, so a default-configured execute call never reaches the API. Both SDKs now default to https://www.sim.ai. Patch-bump both to 0.2.1 so the publish workflows release the new default on merge to main, and note in the API reference that earlier versions still default to the apex.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
https://sim.aireturns301 -> https://www.sim.ai(verified:curl -X POST https://sim.ai/api/health→301 https://www.sim.ai:443/api/health).fetchandrequestsreplay a 301 POST as a body-less GET, so default-configured SDK calls such asPOST /api/v2/workflows/<id>/executebreak.config.baseUrl || ...) and Python SDK (base_urldefault + docstring) now default tohttps://www.sim.ai; READMEs and the TS example updated. Remaining apex mentions are browser links/homepage metadata (GET, redirect is harmless).package.json+SDK_VERSION+bun.lockworkspace entry;pyproject.toml+__version__). The publish workflows release on push to main when the version is new, so this ships on the next main merge.setup.pystays at its stale, unread 0.1.1 as in fix(sdk): make the 0.2.0 SDK release safe to publish #6616.python.mdx,typescript.mdx) now states the www default and notes that versions before 0.2.1 default to the apex, which redirects.Type of Change
Testing
packages/ts-sdk:bun run test— 10 passedpackages/python-sdk:PYTHONPATH=. pytest tests/— 41 passed (default-URL assertions updated)bun run lint,bun run check:audits(incl.check:site-urls),bun run docs-manifest:check— passChecklist
🤖 Generated with Claude Code