mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-14 20:53:41 +00:00
This PR improves MiniMax Code Plan integration in DeerFlow by fixing three issues in the current flow: stream errors were not clearly surfaced in the UI, the frontend could not display the actual provider model ID, and MiniMax reasoning output could leak into final assistant content as inline <think>...</think>. The change adds a MiniMax-specific adapter, exposes real model IDs end-to-end, and adds a frontend fallback for historical messages. Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
29 lines
874 B
TypeScript
29 lines
874 B
TypeScript
import "@/styles/globals.css";
|
|
import "katex/dist/katex.min.css";
|
|
|
|
import { type Metadata } from "next";
|
|
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { I18nProvider } from "@/core/i18n/context";
|
|
import { detectLocaleServer } from "@/core/i18n/server";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "DeerFlow",
|
|
description: "A LangChain-based framework for building super agents.",
|
|
};
|
|
|
|
export default async function RootLayout({
|
|
children,
|
|
}: Readonly<{ children: React.ReactNode }>) {
|
|
const locale = await detectLocaleServer();
|
|
return (
|
|
<html lang={locale} suppressContentEditableWarning suppressHydrationWarning>
|
|
<body>
|
|
<ThemeProvider attribute="class" enableSystem disableTransitionOnChange>
|
|
<I18nProvider initialLocale={locale}>{children}</I18nProvider>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|