You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sdk): default both SDKs to the www.sim.ai host
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.
-`base_url` (str, optional): Base URL for the Sim API (defaults to `https://sim.ai`, which redirects to `https://www.sim.ai`; set the `www` host explicitly)
56
+
-`base_url` (str, optional): Base URL for the Sim API (defaults to `https://www.sim.ai`; versions before 0.2.1 default to `https://sim.ai`, which redirects to `https://www.sim.ai`, so set the `www` host explicitly on older versions)
Copy file name to clipboardExpand all lines: apps/docs/content/docs/api-reference/typescript.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ import { SimStudioClient } from 'simstudio-ts-sdk';
44
44
// Initialize the client
45
45
const client =newSimStudioClient({
46
46
apiKey: 'your-api-key-here',
47
-
baseUrl: 'https://www.sim.ai'// optional; the default https://sim.ai redirects to this host
47
+
baseUrl: 'https://www.sim.ai'// optional, defaults to https://www.sim.ai
48
48
});
49
49
50
50
// Execute a workflow
@@ -68,7 +68,7 @@ new SimStudioClient(config: SimStudioConfig)
68
68
69
69
**Configuration:**
70
70
-`config.apiKey` (string): Your Sim API key
71
-
-`config.baseUrl` (string, optional): Base URL for the Sim API (defaults to `https://sim.ai`, which redirects to `https://www.sim.ai`; set the `www` host explicitly)
71
+
-`config.baseUrl` (string, optional): Base URL for the Sim API (defaults to `https://www.sim.ai`; versions before 0.2.1 default to `https://sim.ai`, which redirects to `https://www.sim.ai`, so set the `www` host explicitly on older versions)
0 commit comments