mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
CHAT_ROUTES was built once at module load via migratedHref, capturing an empty server root path before the UI-config bootstrap sets it. Under SERVER_ROOT_PATH every chat route came out unprefixed, so router.push hard-navigated to a 404; during a send that page unload also aborted the streaming request, so the first message of a new conversation never rendered and only a second send appeared to work. Compute the routes at render time via getChatRoutes(), update the send URL with a shallow history.pushState instead of a router navigation, and source the active conversation id from the hook's local state so it propagates without a router round-trip |
||
|---|---|---|
| .. | ||
| AntdGlobalProvider.tsx | ||
| AuthContext.tsx | ||
| ChatShellContext.tsx | ||
| PluginModeContext.test.tsx | ||
| PluginModeContext.tsx | ||
| ReactQueryProvider.tsx | ||
| ThemeContext.tsx | ||