mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 09:39:41 +02:00
Three critical fixes to the chat completion service: 1. Auth header: attach Bearer token from authStore on every request. Without this, mana-api returns 401 in production. 2. Template support: when a conversation has a templateId, resolve and decrypt its systemPrompt from IndexedDB and prepend it as a system message to the LLM context. Both route page and workbench overlay now pass templateId + modelId through to sendAndStream(). 3. Streaming debounce: persist accumulated text to Dexie at most every 250ms instead of on every SSE chunk. Reduces encrypt+write operations from ~50/response to ~8 without affecting the live UI (onChunk still fires on every token). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| landing | ||
| mobile | ||
| web | ||