AI Core/custom Backend Integration

Connect useChat to a non-TanStack-AI backend through custom connection adapters. ConnectConnectionAdapter (single async iterable) vs SubscribeConnectionAdapter (separate subscribe/send). Customize fetchServerSentEvents() and fetchHttpStream() with auth headers, custom URLs, and request options. Import from framework package, not @tanstack/ai-client.

TanStack 3126805 13.9 KB Updated

File contents

tanstack/ai/tree/main/packages/ai/skills/ai-core/custom-backend-integration commit 3126805a2a

Frequently asked questions

npx skillmds@latest add tanstack/ai-core-custom-backend-integration