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
Copy file name to clipboardExpand all lines: docs/ai-chat/reference.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -512,6 +512,7 @@ Options for the frontend transport constructor and `useTriggerChatTransport` hoo
512
512
|`accessToken`|`(params: AccessTokenParams) => string \| Promise<string>`| required | Pure refresh — mints a fresh session-scoped PAT. Called on 401/403. See [callback shape](#accesstoken-callback). |
513
513
|`startSession`|`(params: StartSessionParams<TClientData>) => Promise<StartSessionResult>`| optional | Creates the chat Session and returns the session-scoped PAT. Called on `transport.preload(chatId)` and lazily on the first `sendMessage` for any chatId without a cached PAT. See [callback shape](#startsession-callback). |
514
514
|`baseURL`|`string`|`"https://api.trigger.dev"`| API base URL (for self-hosted) |
515
+
|`streamBaseURL`|`string`| falls back to `baseURL`| Base URL for the SSE stream subscription only (`GET .../sessions/{chatId}/out`). Route the long-lived stream through a custom proxy (e.g. a Cloudflare worker capturing JA4 fingerprints for bot detection) while keeping append POSTs direct to `baseURL`. |
515
516
|`headers`|`Record<string, string>`| — | Extra headers for API requests |
516
517
|`streamTimeoutSeconds`|`number`|`120`| How long to wait for stream data |
517
518
|`clientData`| Typed by `clientDataSchema`| — | Default client data merged into per-turn `metadata` and threaded through `startSession`'s params (so the first run's `payload.metadata` matches per-turn `metadata`). Live-updated when the option value changes. |
0 commit comments