Files
plane/web/ee/components/pi-chat/root.tsx
Akshita Goyal 8e0a919750 fix: pi chat bug fixes (#1670)
* chore: pi empty state

* fix: response change handled

* fix: handled api failure

* fix: formatted ai messages

* fix: reverted the pi pallete

* fix: integrated  models api

* fix: disabled regenerating new chat

* fix: page loading fixed

* fix: dynamically imported markdown

* fix: removed extras

* fix: minor css

* fix: handled pi chat in bulk ops
2024-11-08 13:33:00 +05:30

14 lines
463 B
TypeScript

import { useParams } from "next/navigation";
import { WithFeatureFlagHOC } from "../feature-flags";
import { PiChatBase } from "./base";
import { EmptyPiChat } from "./empty";
export const PiChatRoot = () => {
const { workspaceSlug } = useParams();
return (
// Add CE component for fallback
<WithFeatureFlagHOC workspaceSlug={workspaceSlug?.toString()} flag="PI_CHAT" fallback={<EmptyPiChat />}>
<PiChatBase />
</WithFeatureFlagHOC>
);
};