nanochat/services/frontend/app/api/chat/stream
Manmohan Sharma faf4810696
fix(frontend): send correct body format to chat-api messages endpoint
Chat-api expects {content, temperature, max_tokens, top_k} but frontend
was sending {messages: [...]}. Now extracts last user message as content
when proxying to /api/conversations/:id/messages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 14:49:22 -07:00
..
route.ts fix(frontend): send correct body format to chat-api messages endpoint 2026-04-16 14:49:22 -07:00