mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
refactor: rename flag to CHAT_MODE_OPTION
This commit is contained in:
@@ -46,7 +46,7 @@ export function ChatInput({
|
||||
onDroppedFilesConsumed,
|
||||
}: Props) {
|
||||
const { copilotMode, setCopilotMode } = useCopilotUIStore();
|
||||
const isFastModeEnabled = useGetFlag(Flag.COPILOT_FAST_MODE_OPTION);
|
||||
const isFastModeEnabled = useGetFlag(Flag.CHAT_MODE_OPTION);
|
||||
const [files, setFiles] = useState<File[]>([]);
|
||||
|
||||
// Merge files dropped onto the chat window into internal state.
|
||||
|
||||
@@ -14,7 +14,7 @@ export enum Flag {
|
||||
MARKETPLACE_SEARCH_TERMS = "marketplace-search-terms",
|
||||
ENABLE_PLATFORM_PAYMENT = "enable-platform-payment",
|
||||
CHAT = "chat",
|
||||
COPILOT_FAST_MODE_OPTION = "copilot-fast-mode-option",
|
||||
CHAT_MODE_OPTION = "copilot-fast-mode-option",
|
||||
}
|
||||
|
||||
const isPwMockEnabled = process.env.NEXT_PUBLIC_PW_TEST === "true";
|
||||
@@ -29,7 +29,7 @@ const defaultFlags = {
|
||||
[Flag.MARKETPLACE_SEARCH_TERMS]: DEFAULT_SEARCH_TERMS,
|
||||
[Flag.ENABLE_PLATFORM_PAYMENT]: false,
|
||||
[Flag.CHAT]: false,
|
||||
[Flag.COPILOT_FAST_MODE_OPTION]: false,
|
||||
[Flag.CHAT_MODE_OPTION]: false,
|
||||
};
|
||||
|
||||
type FlagValues = typeof defaultFlags;
|
||||
|
||||
Reference in New Issue
Block a user