Add explicit baseURL examples to ai docs

Co-authored-by: Eric Allam <eric@trigger.dev>
This commit is contained in:
Cursor Agent
2026-02-15 04:41:30 +00:00
parent c970ff0be8
commit c00d630487
2 changed files with 20 additions and 0 deletions
+10
View File
@@ -659,6 +659,16 @@ the resulting value must not be empty. The value must also be a valid absolute U
the `http` or `https` protocol, without query parameters, hash fragments, or embedded
username/password credentials.
Examples:
- ✅ `https://api.trigger.dev`
- ✅ `https://api.trigger.dev/custom-prefix`
- ✅ ` https://api.trigger.dev/custom-prefix/// ` (trimmed + normalized)
- ❌ `https://api.trigger.dev?foo=bar`
- ❌ `https://api.trigger.dev#fragment`
- ❌ `https://user:pass@api.trigger.dev`
- ❌ `ftp://api.trigger.dev`
For richer TypeScript ergonomics in app code, `@trigger.dev/ai` also exports:
- `TriggerChatHeadersInput`
+10
View File
@@ -166,6 +166,16 @@ both cleanup steps (`set` inactive state and `delete`) even if one of them fails
- `baseURL` must not include query parameters or hash fragments.
- `baseURL` must not include username/password URL credentials.
Examples:
-`https://api.trigger.dev`
-`https://api.trigger.dev/custom-prefix`
-` https://api.trigger.dev/custom-prefix/// ` (trimmed + normalized)
-`https://api.trigger.dev?foo=bar` (query string)
-`https://api.trigger.dev#fragment` (hash fragment)
-`https://user:pass@api.trigger.dev` (credentials)
-`ftp://api.trigger.dev` (non-http protocol)
## `ai.tool(...)` example
```ts