Tanstack 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.

lukasa1993 005e61f 3 files · 15.9 KB Updated

File contents

lukasa1993/tanstack-skills-extracted/tree/main/skills/tanstack-ai-core-custom-backend-integration commit 005e61f4b8

Frequently asked questions

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