Skip to content

Commit d5b4ae0

Browse files
committed
add streamBaseUrl
1 parent 796a74b commit d5b4ae0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/ai-chat/reference.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ Options for the frontend transport constructor and `useTriggerChatTransport` hoo
512512
| `accessToken` | `(params: AccessTokenParams) => string \| Promise<string>` | required | Pure refresh — mints a fresh session-scoped PAT. Called on 401/403. See [callback shape](#accesstoken-callback). |
513513
| `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). |
514514
| `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`. |
515516
| `headers` | `Record<string, string>` || Extra headers for API requests |
516517
| `streamTimeoutSeconds` | `number` | `120` | How long to wait for stream data |
517518
| `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

Comments
 (0)