Open History to see the last commit
1import { fetchServerSentEvents } from '@tanstack/ai-react'
2import { byok } from './byok'
3import { chatInterrupts } from './interrupts'
4import { itinerarySchema } from './schema'
5import { clientTools } from './tools'
6
7export const chatOptions = {
8 connection: fetchServerSentEvents('/api/chat'),
9 tools: clientTools,
10 interrupts: chatInterrupts,
11 outputSchema: itinerarySchema,
12 byok,
13 byokProvider: () => 'openai' as const,
14}